public class ECEncryption extends AbstractEncryptionConfiguration
algorithm, method
Constructor and Description |
---|
ECEncryption(ECEncryptionConfiguration ecEncryptionConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected com.nimbusds.jose.JWEDecrypter |
buildDecrypter()
Build the appropriate decrypter.
|
protected com.nimbusds.jose.JWEEncrypter |
buildEncrypter()
Build the appropriate encrypter.
|
protected com.nimbusds.jose.JWEEncrypter |
buildEncrypterWithPublicKey(java.security.interfaces.ECPublicKey publicKey)
Instantiates
ECDHEncrypter with ECPublicKey . |
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.
|
decrypt, encrypt, getAlgorithm, getMethod, setAlgorithm, setMethod
public ECEncryption(ECEncryptionConfiguration ecEncryptionConfiguration)
ecEncryptionConfiguration
- Instance of ECEncryptionConfiguration
public boolean supports(com.nimbusds.jose.JWEAlgorithm algorithm, com.nimbusds.jose.EncryptionMethod method)
EncryptionConfiguration
algorithm
- the encryption algorithmmethod
- the encryption methodpublic java.lang.String supportedAlgorithmsMessage()
protected com.nimbusds.jose.JWEEncrypter buildEncrypter() throws com.nimbusds.jose.JOSEException
AbstractEncryptionConfiguration
buildEncrypter
in class AbstractEncryptionConfiguration
com.nimbusds.jose.JOSEException
- could be thrown while building encrypter if configuration is invalidprotected com.nimbusds.jose.JWEEncrypter buildEncrypterWithPublicKey(@NonNull java.security.interfaces.ECPublicKey publicKey) throws com.nimbusds.jose.JOSEException
ECDHEncrypter
with ECPublicKey
.publicKey
- Instance of ECPublicKey
ECDHEncrypter
com.nimbusds.jose.JOSEException
- if the ECDHEncrypter
cannot be intantiatedprotected com.nimbusds.jose.JWEDecrypter buildDecrypter() throws com.nimbusds.jose.JOSEException
AbstractEncryptionConfiguration
buildDecrypter
in class AbstractEncryptionConfiguration
com.nimbusds.jose.JOSEException
- could be thrown while building decrypter if configuration is invalid