Class ECEncryption
java.lang.Object
io.micronaut.security.token.jwt.encryption.AbstractEncryptionConfiguration
io.micronaut.security.token.jwt.encryption.ec.ECEncryption
- All Implemented Interfaces:
- EncryptionConfiguration
Elliptic curve encryption configuration.
- Since:
- 1.0
- Author:
- Sergio del Amo
- 
Field SummaryFields inherited from class io.micronaut.security.token.jwt.encryption.AbstractEncryptionConfigurationalgorithm, method
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected com.nimbusds.jose.JWEDecrypterBuild the appropriate decrypter.protected com.nimbusds.jose.JWEEncrypterBuild the appropriate encrypter.protected com.nimbusds.jose.JWEEncrypterbuildEncrypterWithPublicKey(ECPublicKey publicKey) InstantiatesECDHEncrypterwithECPublicKey.booleansupports(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.AbstractEncryptionConfigurationdecrypt, encrypt, getAlgorithm, getMethod, setAlgorithm, setMethod
- 
Constructor Details- 
ECEncryption- Parameters:
- ecEncryptionConfiguration- Instance of- ECEncryptionConfiguration
 
 
- 
- 
Method Details- 
supportspublic boolean supports(com.nimbusds.jose.JWEAlgorithm algorithm, com.nimbusds.jose.EncryptionMethod method) Description copied from interface:EncryptionConfigurationWhether this encryption configuration supports this algorithm and encryption method.- Parameters:
- algorithm- the encryption algorithm
- method- the encryption method
- Returns:
- whether this encryption configuration supports this algorithm and encryption method
 
- 
supportedAlgorithmsMessage- Returns:
- message explaining the supported algorithms
 
- 
buildEncrypterprotected com.nimbusds.jose.JWEEncrypter buildEncrypter() throws com.nimbusds.jose.JOSEExceptionDescription copied from class:AbstractEncryptionConfigurationBuild the appropriate encrypter.- Specified by:
- buildEncrypterin class- AbstractEncryptionConfiguration
- Returns:
- the appropriate encrypter
- Throws:
- com.nimbusds.jose.JOSEException- could be thrown while building encrypter if configuration is invalid
 
- 
buildEncrypterWithPublicKeyprotected com.nimbusds.jose.JWEEncrypter buildEncrypterWithPublicKey(@NonNull ECPublicKey publicKey) throws com.nimbusds.jose.JOSEException InstantiatesECDHEncrypterwithECPublicKey.- Parameters:
- publicKey- Instance of- ECPublicKey
- Returns:
- Instance of ECDHEncrypter
- Throws:
- com.nimbusds.jose.JOSEException- if the- ECDHEncryptercannot be intantiated
 
- 
buildDecrypterprotected com.nimbusds.jose.JWEDecrypter buildDecrypter() throws com.nimbusds.jose.JOSEExceptionDescription copied from class:AbstractEncryptionConfigurationBuild the appropriate decrypter.- Specified by:
- buildDecrypterin class- AbstractEncryptionConfiguration
- Returns:
- the appropriate decrypter
- Throws:
- com.nimbusds.jose.JOSEException- could be thrown while building decrypter if configuration is invalid
 
 
-