public class SecretEncryption extends AbstractEncryptionConfiguration
algorithm, method| Constructor and Description |
|---|
SecretEncryption(SecretEncryptionConfiguration secretEncryptionConfiguration) |
| 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.
|
java.lang.String |
getSecret() |
void |
setSecret(java.lang.String secret)
Sets secret byte[] with a string with UTF_8 charset.
|
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, setMethodpublic SecretEncryption(SecretEncryptionConfiguration secretEncryptionConfiguration)
secretEncryptionConfiguration - Instance of SecretEncryptionConfigurationpublic boolean supports(com.nimbusds.jose.JWEAlgorithm algorithm,
com.nimbusds.jose.EncryptionMethod method)
EncryptionConfigurationalgorithm - the encryption algorithmmethod - the encryption methodpublic java.lang.String supportedAlgorithmsMessage()
protected com.nimbusds.jose.JWEEncrypter buildEncrypter()
throws com.nimbusds.jose.KeyLengthException
AbstractEncryptionConfigurationbuildEncrypter in class AbstractEncryptionConfigurationcom.nimbusds.jose.KeyLengthExceptionprotected com.nimbusds.jose.JWEDecrypter buildDecrypter()
throws com.nimbusds.jose.KeyLengthException
AbstractEncryptionConfigurationbuildDecrypter in class AbstractEncryptionConfigurationcom.nimbusds.jose.KeyLengthExceptionpublic java.lang.String getSecret()
public void setSecret(java.lang.String secret)
secret - UTF_8 string