Class SecretEncryptionConfiguration
java.lang.Object
io.micronaut.security.token.jwt.encryption.secret.SecretEncryptionConfiguration
@EachProperty("micronaut.security.token.jwt.encryptions.secret")
public class SecretEncryptionConfiguration
extends Object
Encapsulates Secret Encryption Configuration.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.jose.EncryptionMethodcom.nimbusds.jose.JWEAlgorithmgetName()booleanisBase64()voidsetBase64(boolean base64) Indicates whether the supplied secret is base64 encoded.voidsetEncryptionMethod(com.nimbusds.jose.EncryptionMethod encryptionMethod) EncryptionMethod.voidsetJweAlgorithm(com.nimbusds.jose.JWEAlgorithm jweAlgorithm) JWEAlgorithm.voidSecret used for encryption configuration.
-
Field Details
-
DEFAULT_BASE64
public static final boolean DEFAULT_BASE64The default base64 value.- See Also:
-
-
Constructor Details
-
SecretEncryptionConfiguration
Constructor.- Parameters:
name- Bean name qualifier.
-
-
Method Details
-
getSecret
- Returns:
- The secret being used in
SecretEncryption
-
getJweAlgorithm
public com.nimbusds.jose.JWEAlgorithm getJweAlgorithm()- Returns:
- The JWE algorithm
-
setJweAlgorithm
public void setJweAlgorithm(com.nimbusds.jose.JWEAlgorithm jweAlgorithm) JWEAlgorithm.- Parameters:
jweAlgorithm- JWT Algorithm
-
setEncryptionMethod
public void setEncryptionMethod(com.nimbusds.jose.EncryptionMethod encryptionMethod) EncryptionMethod.- Parameters:
encryptionMethod- Encryption Method
-
getEncryptionMethod
public com.nimbusds.jose.EncryptionMethod getEncryptionMethod()- Returns:
EncryptionMethod
-
setSecret
Secret used for encryption configuration.- Parameters:
secret- Encryption secret.
-
isBase64
public boolean isBase64()- Returns:
- true if the secret is Base64 encoded
-
setBase64
public void setBase64(boolean base64) Indicates whether the supplied secret is base64 encoded. Default value false.- Parameters:
base64- boolean flag indicating whether the supplied secret is base64 encoded
-
getName
- Returns:
- Bean qualifier name.
-