Class SecretsProviderJwtCryptographyHandler
- java.lang.Object
-
- org.forgerock.jaspi.modules.session.jwt.SecretsProviderJwtCryptographyHandler
-
- All Implemented Interfaces:
JwtCryptographyHandler
@Deprecated public class SecretsProviderJwtCryptographyHandler extends Object implements JwtCryptographyHandler
Deprecated.TheAuthenticatedEncryptionCryptographyHandlershould be preferred.An implementation ofJwtCryptographyHandlerthat uses aSecretsProviderto get keys.
-
-
Constructor Summary
Constructors Constructor Description SecretsProviderJwtCryptographyHandler()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddecrypt(EncryptedThenSignedJwt jwt)Deprecated.Decrypt the JWT.voidinitialize(Map<String,Object> options)Deprecated.Initialise the handler.EncryptedJwtBuilderjwe(JwtBuilderFactory jwtBuilderFactory)Deprecated.Apply encryption to the JWT.EncryptedThenSignedJwtBuildersign(EncryptedJwtBuilder jwtbuilder)Deprecated.Sign the JWT.booleanverify(EncryptedThenSignedJwt jwt)Deprecated.Verify the JWT.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.forgerock.jaspi.modules.session.jwt.JwtCryptographyHandler
buildJwt, decryptAndVerify
-
-
-
-
Method Detail
-
initialize
public void initialize(Map<String,Object> options)
Deprecated.Description copied from interface:JwtCryptographyHandlerInitialise the handler.- Specified by:
initializein interfaceJwtCryptographyHandler- Parameters:
options- The options to be used.
-
jwe
public EncryptedJwtBuilder jwe(JwtBuilderFactory jwtBuilderFactory)
Deprecated.Description copied from interface:JwtCryptographyHandlerApply encryption to the JWT.- Specified by:
jwein interfaceJwtCryptographyHandler- Parameters:
jwtBuilderFactory- The JWT builder.- Returns:
- The JWT builder after applying encryption.
-
sign
public EncryptedThenSignedJwtBuilder sign(EncryptedJwtBuilder jwtbuilder)
Deprecated.Description copied from interface:JwtCryptographyHandlerSign the JWT.- Specified by:
signin interfaceJwtCryptographyHandler- Parameters:
jwtbuilder- The JWT builder.- Returns:
- The JWT builder after signing.
-
verify
public boolean verify(EncryptedThenSignedJwt jwt)
Deprecated.Description copied from interface:JwtCryptographyHandlerVerify the JWT.- Specified by:
verifyin interfaceJwtCryptographyHandler- Parameters:
jwt- The JWT.- Returns:
- true if the JWT is valid.
-
decrypt
public void decrypt(EncryptedThenSignedJwt jwt)
Deprecated.Description copied from interface:JwtCryptographyHandlerDecrypt the JWT.- Specified by:
decryptin interfaceJwtCryptographyHandler- Parameters:
jwt- The JWT.
-
-