public class SecretEncryptionConfiguration extends AbstractEncryptionConfiguration
algorithm, method
Constructor and Description |
---|
SecretEncryptionConfiguration() |
SecretEncryptionConfiguration(String secret) |
SecretEncryptionConfiguration(String secret,
com.nimbusds.jose.JWEAlgorithm algorithm,
com.nimbusds.jose.EncryptionMethod method) |
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() |
protected void |
internalInit()
Internal initialization of the object.
|
void |
setSecret(String secret) |
boolean |
supports(com.nimbusds.jose.JWEAlgorithm algorithm,
com.nimbusds.jose.EncryptionMethod method)
Whether this encryption configuration supports this algorithm and encryption method.
|
String |
toString() |
decrypt, encrypt, getAlgorithm, getMethod, setAlgorithm, setMethod
init, reinit
public SecretEncryptionConfiguration()
public SecretEncryptionConfiguration(String secret)
public SecretEncryptionConfiguration(String secret, com.nimbusds.jose.JWEAlgorithm algorithm, com.nimbusds.jose.EncryptionMethod method)
public boolean supports(com.nimbusds.jose.JWEAlgorithm algorithm, com.nimbusds.jose.EncryptionMethod method)
EncryptionConfiguration
algorithm
- the encryption algorithmmethod
- the encryption methodprotected void internalInit()
InitializableObject
internalInit
in class InitializableObject
protected com.nimbusds.jose.JWEEncrypter buildEncrypter()
AbstractEncryptionConfiguration
buildEncrypter
in class AbstractEncryptionConfiguration
protected com.nimbusds.jose.JWEDecrypter buildDecrypter()
AbstractEncryptionConfiguration
buildDecrypter
in class AbstractEncryptionConfiguration
public String getSecret()
public void setSecret(String secret)
Copyright © 2017. All rights reserved.