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. 
 | 
String | 
getSecret()  | 
void | 
setSecret(String secret)
Sets secret byte[] with a string with UTF_8 charset. 
 | 
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 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 String getSecret()
public void setSecret(String secret)
secret - UTF_8 string