@ConfigurationProperties(value="micronaut.security.token.jwt.claims-validators") public class JwtClaimsValidatorConfigurationProperties extends java.lang.Object implements JwtClaimsValidatorConfiguration
ConfigurationProperties
implementation of JwtClaimsValidatorConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_EXPIRATION
The default expiration value.
|
static boolean |
DEFAULT_NONCE
The default nonce value.
|
static boolean |
DEFAULT_NOT_BEFORE
The default not-before value.
|
static boolean |
DEFAULT_OPENID_ID_TOKEN
The default not-before value.
|
static boolean |
DEFAULT_SUBJECT_NOT_NULL
The default subject-not-null value.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
JwtClaimsValidatorConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAudience() |
java.lang.String |
getIssuer() |
boolean |
isExpiration() |
boolean |
isNonce() |
boolean |
isNotBefore() |
boolean |
isOpenidIdtoken() |
boolean |
isSubjectNotNull() |
void |
setAudience(java.lang.String audience) |
void |
setExpiration(boolean expiration) |
void |
setIssuer(java.lang.String issuer) |
void |
setNonce(boolean nonce) |
void |
setNotBefore(boolean notBefore) |
void |
setOpenidIdtoken(boolean openidIdtoken) |
void |
setSubjectNotNull(boolean subjectNotNull) |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_NONCE
public static final boolean DEFAULT_EXPIRATION
public static final boolean DEFAULT_SUBJECT_NOT_NULL
public static final boolean DEFAULT_NOT_BEFORE
public static final boolean DEFAULT_OPENID_ID_TOKEN
public JwtClaimsValidatorConfigurationProperties()
@Nullable public java.lang.String getIssuer()
getIssuer
in interface JwtClaimsValidatorConfiguration
public void setIssuer(@Nullable java.lang.String issuer)
issuer
- Whether the iss claim should be validated to ensure it matches this value. It defaults to null, thus it is not validated.@Nullable public java.lang.String getAudience()
getAudience
in interface JwtClaimsValidatorConfiguration
public void setAudience(@Nullable java.lang.String audience)
audience
- Whether the aud claim should be validated to ensure it matches this value. It defaults to null, thus it is not validated.public boolean isSubjectNotNull()
isSubjectNotNull
in interface JwtClaimsValidatorConfiguration
public void setSubjectNotNull(boolean subjectNotNull)
subjectNotNull
- Whether the JWT subject claim should be validated to ensure it is not null. Default value true.public boolean isNotBefore()
isNotBefore
in interface JwtClaimsValidatorConfiguration
public void setNotBefore(boolean notBefore)
notBefore
- Whether it should be validated that validation time is not before the not-before claim (nbf) of a JWT token. Default value false.public boolean isExpiration()
isExpiration
in interface JwtClaimsValidatorConfiguration
public void setExpiration(boolean expiration)
expiration
- Whether the expiration date of the JWT should be validated. Default value true.public boolean isNonce()
isNonce
in interface JwtClaimsValidatorConfiguration
public void setNonce(boolean nonce)
nonce
- Whether the nonce claim should be validated when a nonce was present. Default value true.public boolean isOpenidIdtoken()
isOpenidIdtoken
in interface JwtClaimsValidatorConfiguration
public void setOpenidIdtoken(boolean openidIdtoken)
openidIdtoken
- Whether `IdTokenClaimsValidator`, which performs some fo the verifications described in OpenID Connect Spec, is enabled. Default value true. Only applies for `idtoken` authentication mode.