Class JwtClaimsValidatorConfigurationProperties

    • Field Detail

      • DEFAULT_NONCE

        public static final boolean DEFAULT_NONCE
        The default nonce value.
        See Also:
        Constant Field Values
      • DEFAULT_EXPIRATION

        public static final boolean DEFAULT_EXPIRATION
        The default expiration value.
        See Also:
        Constant Field Values
      • DEFAULT_SUBJECT_NOT_NULL

        public static final boolean DEFAULT_SUBJECT_NOT_NULL
        The default subject-not-null value.
        See Also:
        Constant Field Values
      • DEFAULT_NOT_BEFORE

        public static final boolean DEFAULT_NOT_BEFORE
        The default not-before value.
        See Also:
        Constant Field Values
      • DEFAULT_OPENID_ID_TOKEN

        public static final boolean DEFAULT_OPENID_ID_TOKEN
        The default not-before value.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JwtClaimsValidatorConfigurationProperties

        public JwtClaimsValidatorConfigurationProperties()
    • Method Detail

      • getIssuer

        @Nullable
        public java.lang.String getIssuer()
        Specified by:
        getIssuer in interface JwtClaimsValidatorConfiguration
        Returns:
        Whether the iss claim should be validated to ensure it matches this value.
      • setIssuer

        public void setIssuer​(@Nullable
                              java.lang.String issuer)
        Parameters:
        issuer - Whether the iss claim should be validated to ensure it matches this value. It defaults to null, thus it is not validated.
      • getAudience

        @Nullable
        public java.lang.String getAudience()
        Specified by:
        getAudience in interface JwtClaimsValidatorConfiguration
        Returns:
        Whether the aud claim should be validated to ensure it matches this value.
      • setAudience

        public void setAudience​(@Nullable
                                java.lang.String audience)
        Parameters:
        audience - Whether the aud claim should be validated to ensure it matches this value. It defaults to null, thus it is not validated.
      • setSubjectNotNull

        public void setSubjectNotNull​(boolean subjectNotNull)
        Parameters:
        subjectNotNull - Whether the JWT subject claim should be validated to ensure it is not null. Default value true.
      • isNotBefore

        public boolean isNotBefore()
        Specified by:
        isNotBefore in interface JwtClaimsValidatorConfiguration
        Returns:
        Whether it should be validated that validation time is not before the not-before claim (nbf) of a JWT token.
      • setNotBefore

        public void setNotBefore​(boolean notBefore)
        Parameters:
        notBefore - Whether it should be validated that validation time is not before the not-before claim (nbf) of a JWT token. Default value false.
      • setExpiration

        public void setExpiration​(boolean expiration)
        Parameters:
        expiration - Whether the expiration date of the JWT should be validated. Default value true.
      • setNonce

        public void setNonce​(boolean nonce)
        Parameters:
        nonce - Whether the nonce claim should be validated when a nonce was present. Default value true.
      • isOpenidIdtoken

        public boolean isOpenidIdtoken()
        Specified by:
        isOpenidIdtoken in interface JwtClaimsValidatorConfiguration
        Returns:
        Whether `IdTokenClaimsValidator`, which performs some fo the verifications described in OpenID Connect Spec, is enabled. Only applies for `idtoken` authentication mode.
      • setOpenidIdtoken

        public void setOpenidIdtoken​(boolean openidIdtoken)
        Parameters:
        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.