Class JsonWebTokenClaim.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • values

        public JsonWebTokenClaim.Builder values​(List<String> values)
        The list of acceptable values for a given claim.

        If this value is “null” or empty and “isRequired” set to “true”, then the presence of this claim in the JWT is validated.

        Parameters:
        values - the value to set
        Returns:
        this builder
      • isRequired

        public JsonWebTokenClaim.Builder isRequired​(Boolean isRequired)
        Whether the claim is required to be present in the JWT or not.

        If set to “false”, the claim values will be matched only if the claim is present in the JWT.

        Parameters:
        isRequired - the value to set
        Returns:
        this builder