@Generated(value="OracleSDKGenerator", comments="API Version: 20190501") public final class TokenAuthenticationPolicy extends AuthenticationPolicy
Validate a 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 TokenAuthenticationPolicy.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 TokenAuthenticationPolicy.Builder
, which maintain a
set of all explicitly set fields called TokenAuthenticationPolicy.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
).
Modifier and Type | Class and Description |
---|---|
static class |
TokenAuthenticationPolicy.Builder |
AuthenticationPolicy.Type
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
TokenAuthenticationPolicy(Boolean isAnonymousAccessAllowed,
String tokenHeader,
String tokenQueryParam,
String tokenAuthScheme,
Float maxClockSkewInSeconds,
TokenAuthenticationValidationPolicy validationPolicy,
ValidationFailurePolicy validationFailurePolicy)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TokenAuthenticationPolicy.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Float |
getMaxClockSkewInSeconds()
The maximum expected time difference between the system clocks of the token issuer and the
API Gateway.
|
String |
getTokenAuthScheme()
The authentication scheme that is to be used when authenticating the token.
|
String |
getTokenHeader()
The name of the header containing the authentication token.
|
String |
getTokenQueryParam()
The name of the query parameter containing the authentication token.
|
ValidationFailurePolicy |
getValidationFailurePolicy() |
TokenAuthenticationValidationPolicy |
getValidationPolicy() |
int |
hashCode() |
TokenAuthenticationPolicy.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getIsAnonymousAccessAllowed
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public TokenAuthenticationPolicy(Boolean isAnonymousAccessAllowed, String tokenHeader, String tokenQueryParam, String tokenAuthScheme, Float maxClockSkewInSeconds, TokenAuthenticationValidationPolicy validationPolicy, ValidationFailurePolicy validationFailurePolicy)
public static TokenAuthenticationPolicy.Builder builder()
Create a new builder.
public TokenAuthenticationPolicy.Builder toBuilder()
public String getTokenHeader()
The name of the header containing the authentication token.
public String getTokenQueryParam()
The name of the query parameter containing the authentication token.
public String getTokenAuthScheme()
The authentication scheme that is to be used when authenticating the token. This must to be provided if “tokenHeader” is specified.
public Float getMaxClockSkewInSeconds()
The maximum expected time difference between the system clocks of the token issuer and the API Gateway.
public TokenAuthenticationValidationPolicy getValidationPolicy()
public ValidationFailurePolicy getValidationFailurePolicy()
public String toString()
toString
in class AuthenticationPolicy
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class AuthenticationPolicy
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class AuthenticationPolicy
public int hashCode()
hashCode
in class AuthenticationPolicy
Copyright © 2016–2024. All rights reserved.