Package com.oracle.bmc.apigateway.model
Class TokenAuthenticationPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.apigateway.model.TokenAuthenticationPolicy.Builder
-
- Enclosing class:
- TokenAuthenticationPolicy
public static class TokenAuthenticationPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
isAnonymousAccessAllowed
public TokenAuthenticationPolicy.Builder isAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed)
-
tokenHeader
public TokenAuthenticationPolicy.Builder tokenHeader(String tokenHeader)
The name of the header containing the authentication token.- Parameters:
tokenHeader
- the value to set- Returns:
- this builder
-
tokenQueryParam
public TokenAuthenticationPolicy.Builder tokenQueryParam(String tokenQueryParam)
The name of the query parameter containing the authentication token.- Parameters:
tokenQueryParam
- the value to set- Returns:
- this builder
-
tokenAuthScheme
public TokenAuthenticationPolicy.Builder tokenAuthScheme(String tokenAuthScheme)
The authentication scheme that is to be used when authenticating the token.This must to be provided if “tokenHeader” is specified.
- Parameters:
tokenAuthScheme
- the value to set- Returns:
- this builder
-
maxClockSkewInSeconds
public TokenAuthenticationPolicy.Builder maxClockSkewInSeconds(Float maxClockSkewInSeconds)
The maximum expected time difference between the system clocks of the token issuer and the API Gateway.- Parameters:
maxClockSkewInSeconds
- the value to set- Returns:
- this builder
-
validationPolicy
public TokenAuthenticationPolicy.Builder validationPolicy(TokenAuthenticationValidationPolicy validationPolicy)
-
validationFailurePolicy
public TokenAuthenticationPolicy.Builder validationFailurePolicy(ValidationFailurePolicy validationFailurePolicy)
-
build
public TokenAuthenticationPolicy build()
-
copy
public TokenAuthenticationPolicy.Builder copy(TokenAuthenticationPolicy model)
-
-