Package org.pac4j.jwt.config.encryption
Interface EncryptionConfiguration
-
- All Known Implementing Classes:
AbstractEncryptionConfiguration
,ECEncryptionConfiguration
,RSAEncryptionConfiguration
,SecretEncryptionConfiguration
public interface EncryptionConfiguration
Encryption configuration.- Since:
- 1.9.2
- Author:
- Jerome Leleu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
supports
boolean supports(com.nimbusds.jose.JWEAlgorithm algorithm, com.nimbusds.jose.EncryptionMethod method)
Whether this encryption configuration supports this algorithm and encryption method.- Parameters:
algorithm
- the encryption algorithmmethod
- the encryption method- Returns:
- whether this encryption configuration supports this algorithm and encryption method
-
encrypt
String encrypt(com.nimbusds.jwt.JWT jwt)
Encrypt a JWT.- Parameters:
jwt
- the JWT- Returns:
- the encrypted JWT
-
decrypt
void decrypt(com.nimbusds.jwt.EncryptedJWT encryptedJWT) throws com.nimbusds.jose.JOSEException
Decrypt an encrypted JWT.- Parameters:
encryptedJWT
- the encrypted JWT- Throws:
com.nimbusds.jose.JOSEException
- exception when decrypting the JWT
-
-