Class TokenAuthenticationPolicy
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.apigateway.model.AuthenticationPolicy
- 
- com.oracle.bmc.apigateway.model.TokenAuthenticationPolicy
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20190501") public final class TokenAuthenticationPolicy extends AuthenticationPolicyValidate 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 theTokenAuthenticationPolicy.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 theTokenAuthenticationPolicy.Builder, which maintain a set of all explicitly set fields calledTokenAuthenticationPolicy.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTokenAuthenticationPolicy.Builder- 
Nested classes/interfaces inherited from class com.oracle.bmc.apigateway.model.AuthenticationPolicyAuthenticationPolicy.Type
 
- 
 - 
Constructor SummaryConstructors Constructor Description TokenAuthenticationPolicy(Boolean isAnonymousAccessAllowed, String tokenHeader, String tokenQueryParam, String tokenAuthScheme, Float maxClockSkewInSeconds, TokenAuthenticationValidationPolicy validationPolicy, ValidationFailurePolicy validationFailurePolicy)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenAuthenticationPolicy.Builderbuilder()Create a new builder.booleanequals(Object o)FloatgetMaxClockSkewInSeconds()The maximum expected time difference between the system clocks of the token issuer and the API Gateway.StringgetTokenAuthScheme()The authentication scheme that is to be used when authenticating the token.StringgetTokenHeader()The name of the header containing the authentication token.StringgetTokenQueryParam()The name of the query parameter containing the authentication token.ValidationFailurePolicygetValidationFailurePolicy()TokenAuthenticationValidationPolicygetValidationPolicy()inthashCode()TokenAuthenticationPolicy.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.- 
Methods inherited from class com.oracle.bmc.apigateway.model.AuthenticationPolicygetIsAnonymousAccessAllowed
 
- 
 
- 
- 
- 
Constructor Detail- 
TokenAuthenticationPolicy@Deprecated public TokenAuthenticationPolicy(Boolean isAnonymousAccessAllowed, String tokenHeader, String tokenQueryParam, String tokenAuthScheme, Float maxClockSkewInSeconds, TokenAuthenticationValidationPolicy validationPolicy, ValidationFailurePolicy validationFailurePolicy) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static TokenAuthenticationPolicy.Builder builder() Create a new builder.
 - 
toBuilderpublic TokenAuthenticationPolicy.Builder toBuilder() 
 - 
getTokenHeaderpublic String getTokenHeader() The name of the header containing the authentication token.- Returns:
- the value
 
 - 
getTokenQueryParampublic String getTokenQueryParam() The name of the query parameter containing the authentication token.- Returns:
- the value
 
 - 
getTokenAuthSchemepublic 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
 
 - 
getMaxClockSkewInSecondspublic Float getMaxClockSkewInSeconds() The maximum expected time difference between the system clocks of the token issuer and the API Gateway.- Returns:
- the value
 
 - 
getValidationPolicypublic TokenAuthenticationValidationPolicy getValidationPolicy() 
 - 
getValidationFailurePolicypublic ValidationFailurePolicy getValidationFailurePolicy() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AuthenticationPolicy
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- AuthenticationPolicy
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- AuthenticationPolicy
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AuthenticationPolicy
 
 
- 
 
-