JWTManager.getJwtBuilder

Returns a JWT builder to build a JWT (JSON Web Token)

Javascript example:

 
 var SECRET_KEY = "ytZj2pZxdp26CF4t@sekPr#C?!VJpD!!";
 var key = system.securityManager.getKeyManager().generateAESSecretKey(SECRET_KEY);


 var jwt = system.securityManager.jwtManager.jwtBuilder
           .setId("myID")
           .setIssuedAt(new Date())
           .setSubject("subject")
           .setIssuer("issuer")
           .signWithHMAC(KeyManager.SIGNATURE_HS256, key)
           .generateJWTToken();
 

returns JWTBuilder