Class SignedThenEncryptedJwtFactory
- java.lang.Object
-
- org.forgerock.openig.tools.jwt.factory.SignedThenEncryptedJwtFactory
-
- All Implemented Interfaces:
JwtFactory
public class SignedThenEncryptedJwtFactory extends Object
AJwtFactoryforSignedThenEncryptedJwt.
-
-
Constructor Summary
Constructors Constructor Description SignedThenEncryptedJwtFactory(SignedJwtFactory signedJwtFactory, JweAlgorithm encryptionAlgorithm, EncryptionMethod encryptionMethod, SecretReference<DataEncryptionKey> encryptionKeyReference)Create a new instance ofSignedThenEncryptedJwtFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Promise<Jwt,NoSuchSecretException>create(Map<String,Object> claimsSet)Produces a newJwt.protected Promise<SignedThenEncryptedJwtBuilder,NoSuchSecretException>jwtBuilder()
-
-
-
Constructor Detail
-
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 Detail
-
jwtBuilder
protected Promise<SignedThenEncryptedJwtBuilder,NoSuchSecretException> jwtBuilder()
-
create
public final Promise<Jwt,NoSuchSecretException> create(Map<String,Object> claimsSet)
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.
-
-