JWTBuilder.generateDirectJWE

Generates Direct Encryption JSON Web Encryption (JWE) token to its compact format consisting of Base64URL-encoded parts delimited by period ('.') characters.
Content encryption classJWE enc identifierKey bitlength
AES/CBC/HMAC/SHAA128CBC-HS256256
A192CBC-HS384384
A256CBC-HS512512
AES/GCMA128GCM128
A192GCM192
A256GCM256

returns java.lang.String

Parameters

java.lang.String  algorithm,  javax.crypto.SecretKey  secret,