public interface EncryptionConfiguration
| Modifier and Type | Method and Description | 
|---|---|
void | 
decrypt(com.nimbusds.jwt.EncryptedJWT encryptedJWT)
Decrypt an encrypted JWT. 
 | 
String | 
encrypt(com.nimbusds.jwt.JWT jwt)
Encrypt a JWT. 
 | 
String | 
supportedAlgorithmsMessage()  | 
boolean | 
supports(com.nimbusds.jose.JWEAlgorithm algorithm,
        com.nimbusds.jose.EncryptionMethod method)
Whether this encryption configuration supports this algorithm and encryption method. 
 | 
String supportedAlgorithmsMessage()
boolean supports(com.nimbusds.jose.JWEAlgorithm algorithm,
                 com.nimbusds.jose.EncryptionMethod method)
algorithm - the encryption algorithmmethod - the encryption methodString encrypt(com.nimbusds.jwt.JWT jwt) throws com.nimbusds.jose.JOSEException, ParseException
jwt - the JWTcom.nimbusds.jose.JOSEException - exception when encrypting JWTParseException - 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