SecretKey
Javascript example:
try { var SECRET_KEY = "ytZj2pZxdp26CF4t@sekPr#C?!VJpD!!"; var key = system.securityManager.getKeyManager().generateAESSecretKey(SECRET_KEY); var jwe = "eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..1EEVZOi0b5d4FGSs.Qzzk5Dm-KpE7wdSryN8sDcjbMcncP-pPdjZufjogzqHnqZVLsrscnI2GATOGF5hmn2qnI2giqcAOzpIWa20.MyGg1j6LjdPlaFJ-hKZS4w" var parsedJWE = system.securityManager.jwtManager.parseJWE(jwe, key); var jsonJWT = JSON.parse(parsedJWE.getPayload()); log("JWTID: " + jsonJWT.jti); //Outputs JWTID: myId } catch (e) { event.owner.addErrorMessage(e.javaException.message); }
returns JWE
SecretKey
.Javascript example: