public interface EncryptionConfiguration
| Modifier and Type | Method and Description |
|---|---|
void |
decrypt(com.nimbusds.jwt.EncryptedJWT encryptedJWT)
Decrypt an encrypted JWT.
|
java.lang.String |
encrypt(com.nimbusds.jwt.JWT jwt)
Encrypt a JWT.
|
java.lang.String |
supportedAlgorithmsMessage() |
boolean |
supports(com.nimbusds.jose.JWEAlgorithm algorithm,
com.nimbusds.jose.EncryptionMethod method)
Whether this encryption configuration supports this algorithm and encryption method.
|
java.lang.String supportedAlgorithmsMessage()
boolean supports(com.nimbusds.jose.JWEAlgorithm algorithm,
com.nimbusds.jose.EncryptionMethod method)
algorithm - the encryption algorithmmethod - the encryption methodjava.lang.String encrypt(com.nimbusds.jwt.JWT jwt)
throws com.nimbusds.jose.JOSEException,
java.text.ParseException
jwt - the JWTcom.nimbusds.jose.JOSEException - exception when encrypting JWTjava.text.ParseException - exception when encrypting JWTvoid decrypt(com.nimbusds.jwt.EncryptedJWT encryptedJWT)
throws com.nimbusds.jose.JOSEException
encryptedJWT - the encrypted JWTcom.nimbusds.jose.JOSEException - exception when decrypting the JWT