Class SignedJwtFactory
- java.lang.Object
-
- org.forgerock.openig.tools.jwt.factory.SignedJwtFactory
-
- All Implemented Interfaces:
JwtFactory
public class SignedJwtFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description SignedJwtFactory(SigningManager signingManager, SecretReference<SigningKey> secretReference, JwsAlgorithm signingAlgorithm)
-
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<SignedJwtBuilderImpl,NoSuchSecretException>
jwtBuilder()
-
-
-
Constructor Detail
-
SignedJwtFactory
public SignedJwtFactory(SigningManager signingManager, SecretReference<SigningKey> secretReference, JwsAlgorithm signingAlgorithm)
-
-
Method Detail
-
jwtBuilder
protected Promise<SignedJwtBuilderImpl,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
.
-
-