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 anJwtFactoryforEncryptedJwt. -
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 anJwtFactoryforEncryptedJwt.- Parameters:
encryptionAlgorithm- the encryption aglorithm.encryptionMethod- the encryption method.encryptionKeyReference- the encryption key, as reference.
-
-
Method Details
-
jwtBuilder
-
create
Description copied from interface:JwtFactoryProduces a newJwt.- Specified by:
createin interfaceJwtFactory- Parameters:
claimsSet- The name-value pairs (claims) to put into a JWT structure.- Returns:
- A new
Jwt.
-