@EachProperty(value="micronaut.security.token.jwt.signatures.secret") public class SecretSignatureConfiguration extends Object
ConfigurationProperties
bean for each sub-property of micronaut.security.token.jwt.signatures.secret.*.Constructor and Description |
---|
SecretSignatureConfiguration(String name) |
Modifier and Type | Method and Description |
---|---|
com.nimbusds.jose.JWSAlgorithm |
getJwsAlgorithm() |
String |
getName() |
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(String secret)
Secret used to sign JWT.
|
public SecretSignatureConfiguration(@Parameter 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 Algorithmpublic String getSecret()
public void setSecret(String secret)
secret
- Signature Secretpublic String getName()
public boolean isBase64()
public void setBase64(boolean base64)
base64
- boolean flag indicating whether the supplied secret is base64 encoded