Class RSAEncryption
- java.lang.Object
-
- io.micronaut.security.token.jwt.encryption.AbstractEncryptionConfiguration
-
- io.micronaut.security.token.jwt.encryption.rsa.RSAEncryption
-
- All Implemented Interfaces:
EncryptionConfiguration
public class RSAEncryption extends AbstractEncryptionConfiguration
RSA encryption configuration.- Since:
- 1.0
- Author:
- Sergio del Amo
-
-
Field Summary
-
Fields inherited from class io.micronaut.security.token.jwt.encryption.AbstractEncryptionConfiguration
algorithm, method
-
-
Constructor Summary
Constructors Constructor Description RSAEncryption(RSAEncryptionConfiguration rsaEncryptionConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.nimbusds.jose.JWEDecrypter
buildDecrypter()
Build the appropriate decrypter.protected com.nimbusds.jose.JWEEncrypter
buildEncrypter()
Build the appropriate encrypter.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.-
Methods inherited from class io.micronaut.security.token.jwt.encryption.AbstractEncryptionConfiguration
decrypt, encrypt, getAlgorithm, getMethod, setAlgorithm, setMethod
-
-
-
-
Constructor Detail
-
RSAEncryption
public RSAEncryption(RSAEncryptionConfiguration rsaEncryptionConfiguration)
- Parameters:
rsaEncryptionConfiguration
- Instance ofRSAEncryptionConfiguration
-
-
Method Detail
-
supports
public boolean supports(com.nimbusds.jose.JWEAlgorithm algorithm, com.nimbusds.jose.EncryptionMethod method)
Description copied from interface:EncryptionConfiguration
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
-
supportedAlgorithmsMessage
public java.lang.String supportedAlgorithmsMessage()
- Returns:
- message explaining the supported algorithms
-
buildEncrypter
protected com.nimbusds.jose.JWEEncrypter buildEncrypter()
Description copied from class:AbstractEncryptionConfiguration
Build the appropriate encrypter.- Specified by:
buildEncrypter
in classAbstractEncryptionConfiguration
- Returns:
- the appropriate encrypter
-
buildDecrypter
protected com.nimbusds.jose.JWEDecrypter buildDecrypter()
Description copied from class:AbstractEncryptionConfiguration
Build the appropriate decrypter.- Specified by:
buildDecrypter
in classAbstractEncryptionConfiguration
- Returns:
- the appropriate decrypter
-
-