public static class TokenAuthenticationPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
public TokenAuthenticationPolicy.Builder isAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed)
public TokenAuthenticationPolicy.Builder tokenHeader(String tokenHeader)
The name of the header containing the authentication token.
tokenHeader
- the value to setpublic TokenAuthenticationPolicy.Builder tokenQueryParam(String tokenQueryParam)
The name of the query parameter containing the authentication token.
tokenQueryParam
- the value to setpublic 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.
tokenAuthScheme
- the value to setpublic TokenAuthenticationPolicy.Builder maxClockSkewInSeconds(Float maxClockSkewInSeconds)
The maximum expected time difference between the system clocks of the token issuer and the API Gateway.
maxClockSkewInSeconds
- the value to setpublic TokenAuthenticationPolicy.Builder validationPolicy(TokenAuthenticationValidationPolicy validationPolicy)
public TokenAuthenticationPolicy.Builder validationFailurePolicy(ValidationFailurePolicy validationFailurePolicy)
public TokenAuthenticationPolicy build()
public TokenAuthenticationPolicy.Builder copy(TokenAuthenticationPolicy model)
Copyright © 2016–2024. All rights reserved.