public static class JwtAuthenticationPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JwtAuthenticationPolicy.Builder |
audiences(List<String> audiences)
The list of intended recipients for the token.
|
JwtAuthenticationPolicy |
build() |
JwtAuthenticationPolicy.Builder |
copy(JwtAuthenticationPolicy model) |
JwtAuthenticationPolicy.Builder |
isAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed) |
JwtAuthenticationPolicy.Builder |
issuers(List<String> issuers)
A list of parties that could have issued the token.
|
JwtAuthenticationPolicy.Builder |
maxClockSkewInSeconds(Float maxClockSkewInSeconds)
The maximum expected time difference between the system clocks of the token issuer and
the API Gateway.
|
JwtAuthenticationPolicy.Builder |
publicKeys(PublicKeySet publicKeys) |
JwtAuthenticationPolicy.Builder |
tokenAuthScheme(String tokenAuthScheme)
The authentication scheme that is to be used when authenticating the token.
|
JwtAuthenticationPolicy.Builder |
tokenHeader(String tokenHeader)
The name of the header containing the authentication token.
|
JwtAuthenticationPolicy.Builder |
tokenQueryParam(String tokenQueryParam)
The name of the query parameter containing the authentication token.
|
JwtAuthenticationPolicy.Builder |
verifyClaims(List<JsonWebTokenClaim> verifyClaims)
A list of claims which should be validated to consider the token valid.
|
public JwtAuthenticationPolicy.Builder isAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed)
public JwtAuthenticationPolicy.Builder tokenHeader(String tokenHeader)
The name of the header containing the authentication token.
tokenHeader
- the value to setpublic JwtAuthenticationPolicy.Builder tokenQueryParam(String tokenQueryParam)
The name of the query parameter containing the authentication token.
tokenQueryParam
- the value to setpublic JwtAuthenticationPolicy.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 JwtAuthenticationPolicy.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 JwtAuthenticationPolicy.Builder issuers(List<String> issuers)
A list of parties that could have issued the token.
issuers
- the value to setpublic JwtAuthenticationPolicy.Builder audiences(List<String> audiences)
The list of intended recipients for the token.
audiences
- the value to setpublic JwtAuthenticationPolicy.Builder verifyClaims(List<JsonWebTokenClaim> verifyClaims)
A list of claims which should be validated to consider the token valid.
verifyClaims
- the value to setpublic JwtAuthenticationPolicy.Builder publicKeys(PublicKeySet publicKeys)
public JwtAuthenticationPolicy build()
public JwtAuthenticationPolicy.Builder copy(JwtAuthenticationPolicy model)
Copyright © 2016–2024. All rights reserved.