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.TheAuthenticatedEncryptionCryptographyHandler
should be preferred.An implementation ofJwtCryptographyHandler
that uses aSecretsProvider
to get keys.
-
-
Constructor Summary
Constructors Constructor Description SecretsProviderJwtCryptographyHandler()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
decrypt(EncryptedThenSignedJwt jwt)
Deprecated.Decrypt the JWT.void
initialize(Map<String,Object> options)
Deprecated.Initialise the handler.EncryptedJwtBuilder
jwe(JwtBuilderFactory jwtBuilderFactory)
Deprecated.Apply encryption to the JWT.EncryptedThenSignedJwtBuilder
sign(EncryptedJwtBuilder jwtbuilder)
Deprecated.Sign the JWT.boolean
verify(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:JwtCryptographyHandler
Initialise the handler.- Specified by:
initialize
in interfaceJwtCryptographyHandler
- Parameters:
options
- The options to be used.
-
jwe
public EncryptedJwtBuilder jwe(JwtBuilderFactory jwtBuilderFactory)
Deprecated.Description copied from interface:JwtCryptographyHandler
Apply encryption to the JWT.- Specified by:
jwe
in interfaceJwtCryptographyHandler
- Parameters:
jwtBuilderFactory
- The JWT builder.- Returns:
- The JWT builder after applying encryption.
-
sign
public EncryptedThenSignedJwtBuilder sign(EncryptedJwtBuilder jwtbuilder)
Deprecated.Description copied from interface:JwtCryptographyHandler
Sign the JWT.- Specified by:
sign
in interfaceJwtCryptographyHandler
- Parameters:
jwtbuilder
- The JWT builder.- Returns:
- The JWT builder after signing.
-
verify
public boolean verify(EncryptedThenSignedJwt jwt)
Deprecated.Description copied from interface:JwtCryptographyHandler
Verify the JWT.- Specified by:
verify
in interfaceJwtCryptographyHandler
- Parameters:
jwt
- The JWT.- Returns:
- true if the JWT is valid.
-
decrypt
public void decrypt(EncryptedThenSignedJwt jwt)
Deprecated.Description copied from interface:JwtCryptographyHandler
Decrypt the JWT.- Specified by:
decrypt
in interfaceJwtCryptographyHandler
- Parameters:
jwt
- The JWT.
-
-