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