Class EncryptedJwtFactory
java.lang.Object
org.forgerock.openig.tools.jwt.factory.EncryptedJwtFactory
- All Implemented Interfaces:
JwtFactory
Support for JWT encryption, both asymmetric and symmetric (authenticated encryption) are supported.
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptedJwtFactory
(JweAlgorithm encryptionAlgorithm, EncryptionMethod encryptionMethod, SecretReference<DataEncryptionKey> encryptionKeyReference) Create a new instance of anJwtFactory
forEncryptedJwt
. -
Method Summary
Modifier and TypeMethodDescriptionfinal Promise<Jwt,
NoSuchSecretException> Produces a newJwt
.protected Promise<EncryptedJwtBuilder,
NoSuchSecretException>
-
Constructor Details
-
EncryptedJwtFactory
public EncryptedJwtFactory(JweAlgorithm encryptionAlgorithm, EncryptionMethod encryptionMethod, SecretReference<DataEncryptionKey> encryptionKeyReference) Create a new instance of anJwtFactory
forEncryptedJwt
.- Parameters:
encryptionAlgorithm
- the encryption aglorithm.encryptionMethod
- the encryption method.encryptionKeyReference
- the encryption key, as reference.
-
-
Method Details
-
jwtBuilder
-
create
Description copied from interface:JwtFactory
Produces a newJwt
.- Specified by:
create
in interfaceJwtFactory
- Parameters:
claimsSet
- The name-value pairs (claims) to put into a JWT structure.- Returns:
- A new
Jwt
.
-