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.
|
boolean |
supports(com.nimbusds.jose.JWEAlgorithm algorithm,
com.nimbusds.jose.EncryptionMethod method)
Whether this encryption configuration supports this algorithm and encryption method.
|
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)
jwt
- the JWTvoid decrypt(com.nimbusds.jwt.EncryptedJWT encryptedJWT) throws com.nimbusds.jose.JOSEException
encryptedJWT
- the encrypted JWTcom.nimbusds.jose.JOSEException
- exception when decrypting the JWTCopyright © 2017. All rights reserved.