@EachProperty(value="micronaut.security.token.jwt.signatures.secret")
@Context
public class SecretSignatureConfiguration
extends java.lang.Object
ConfigurationProperties
bean for each sub-property of micronaut.security.token.jwt.signatures.secret.*.Constructor and Description |
---|
SecretSignatureConfiguration(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
com.nimbusds.jose.JWSAlgorithm |
getJwsAlgorithm() |
java.lang.String |
getName() |
@NotNull java.lang.String |
getSecret() |
boolean |
isBase64() |
void |
setBase64(boolean base64)
Indicates whether the supplied secret is base64 encoded.
|
void |
setJwsAlgorithm(com.nimbusds.jose.JWSAlgorithm jwsAlgorithm)
JWSAlgorithm . |
void |
setSecret(java.lang.String secret)
Secret used to sign JWT.
|
public SecretSignatureConfiguration(@Parameter java.lang.String name)
name
- Bean's qualifier namepublic com.nimbusds.jose.JWSAlgorithm getJwsAlgorithm()
public void setJwsAlgorithm(com.nimbusds.jose.JWSAlgorithm jwsAlgorithm)
JWSAlgorithm
. Defaults to HS256jwsAlgorithm
- JWS Algorithm@NotNull public @NotNull java.lang.String getSecret()
public void setSecret(java.lang.String secret)
secret
- Signature Secretpublic java.lang.String getName()
public boolean isBase64()
public void setBase64(boolean base64)
base64
- boolean flag indicating whether the supplied secret is base64 encoded