Class SignedThenEncryptedJwtFactory
java.lang.Object
org.forgerock.openig.tools.jwt.factory.SignedThenEncryptedJwtFactory
- All Implemented Interfaces:
JwtFactory
A
JwtFactory for SignedThenEncryptedJwt.-
Constructor Summary
ConstructorsConstructorDescriptionSignedThenEncryptedJwtFactory(SignedJwtFactory signedJwtFactory, JweAlgorithm encryptionAlgorithm, EncryptionMethod encryptionMethod, SecretReference<DataEncryptionKey> encryptionKeyReference) Create a new instance ofSignedThenEncryptedJwtFactory. -
Method Summary
-
Constructor Details
-
SignedThenEncryptedJwtFactory
public SignedThenEncryptedJwtFactory(SignedJwtFactory signedJwtFactory, JweAlgorithm encryptionAlgorithm, EncryptionMethod encryptionMethod, SecretReference<DataEncryptionKey> encryptionKeyReference) Create a new instance ofSignedThenEncryptedJwtFactory.- Parameters:
signedJwtFactory- the signed Jwt Factory to useencryptionAlgorithm- the encryption algorithm to useencryptionMethod- the encryption methodencryptionKeyReference- the encryption Key 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.
-