Class JwtAuthenticationPolicy


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20190501")
    public final class JwtAuthenticationPolicy
    extends AuthenticationPolicy
    Validate a JWT token present in the header or query parameter.

    A valid policy must specify either tokenHeader or tokenQueryParam.
    Note: Objects should always be created or deserialized using the JwtAuthenticationPolicy.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the JwtAuthenticationPolicy.Builder, which maintain a set of all explicitly set fields called JwtAuthenticationPolicy.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Method Detail

      • getTokenHeader

        public String getTokenHeader()
        The name of the header containing the authentication token.
        Returns:
        the value
      • getTokenQueryParam

        public String getTokenQueryParam()
        The name of the query parameter containing the authentication token.
        Returns:
        the value
      • getTokenAuthScheme

        public String getTokenAuthScheme()
        The authentication scheme that is to be used when authenticating the token.

        This must to be provided if “tokenHeader” is specified.

        Returns:
        the value
      • getMaxClockSkewInSeconds

        public Float getMaxClockSkewInSeconds()
        The maximum expected time difference between the system clocks of the token issuer and the API Gateway.
        Returns:
        the value
      • getIssuers

        public List<String> getIssuers()
        A list of parties that could have issued the token.
        Returns:
        the value
      • getAudiences

        public List<String> getAudiences()
        The list of intended recipients for the token.
        Returns:
        the value
      • getVerifyClaims

        public List<JsonWebTokenClaim> getVerifyClaims()
        A list of claims which should be validated to consider the token valid.
        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class AuthenticationPolicy
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation