Package com.oracle.bmc.apigateway.model
Class JwtAuthenticationPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.apigateway.model.JwtAuthenticationPolicy.Builder
-
- Enclosing class:
- JwtAuthenticationPolicy
public static class JwtAuthenticationPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JwtAuthenticationPolicy.Builderaudiences(List<String> audiences)The list of intended recipients for the token.JwtAuthenticationPolicybuild()JwtAuthenticationPolicy.Buildercopy(JwtAuthenticationPolicy model)JwtAuthenticationPolicy.BuilderisAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed)JwtAuthenticationPolicy.Builderissuers(List<String> issuers)A list of parties that could have issued the token.JwtAuthenticationPolicy.BuildermaxClockSkewInSeconds(Float maxClockSkewInSeconds)The maximum expected time difference between the system clocks of the token issuer and the API Gateway.JwtAuthenticationPolicy.BuilderpublicKeys(PublicKeySet publicKeys)JwtAuthenticationPolicy.BuildertokenAuthScheme(String tokenAuthScheme)The authentication scheme that is to be used when authenticating the token.JwtAuthenticationPolicy.BuildertokenHeader(String tokenHeader)The name of the header containing the authentication token.JwtAuthenticationPolicy.BuildertokenQueryParam(String tokenQueryParam)The name of the query parameter containing the authentication token.JwtAuthenticationPolicy.BuilderverifyClaims(List<JsonWebTokenClaim> verifyClaims)A list of claims which should be validated to consider the token valid.
-
-
-
Method Detail
-
isAnonymousAccessAllowed
public JwtAuthenticationPolicy.Builder isAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed)
-
tokenHeader
public JwtAuthenticationPolicy.Builder tokenHeader(String tokenHeader)
The name of the header containing the authentication token.- Parameters:
tokenHeader- the value to set- Returns:
- this builder
-
tokenQueryParam
public JwtAuthenticationPolicy.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 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.
- Parameters:
tokenAuthScheme- the value to set- Returns:
- this builder
-
maxClockSkewInSeconds
public JwtAuthenticationPolicy.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
-
issuers
public JwtAuthenticationPolicy.Builder issuers(List<String> issuers)
A list of parties that could have issued the token.- Parameters:
issuers- the value to set- Returns:
- this builder
-
audiences
public JwtAuthenticationPolicy.Builder audiences(List<String> audiences)
The list of intended recipients for the token.- Parameters:
audiences- the value to set- Returns:
- this builder
-
verifyClaims
public JwtAuthenticationPolicy.Builder verifyClaims(List<JsonWebTokenClaim> verifyClaims)
A list of claims which should be validated to consider the token valid.- Parameters:
verifyClaims- the value to set- Returns:
- this builder
-
publicKeys
public JwtAuthenticationPolicy.Builder publicKeys(PublicKeySet publicKeys)
-
build
public JwtAuthenticationPolicy build()
-
copy
public JwtAuthenticationPolicy.Builder copy(JwtAuthenticationPolicy model)
-
-