Package com.oracle.bmc.apigateway.model
Class CustomAuthenticationPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.apigateway.model.CustomAuthenticationPolicy.Builder
-
- Enclosing class:
- CustomAuthenticationPolicy
public static class CustomAuthenticationPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomAuthenticationPolicybuild()CustomAuthenticationPolicy.BuildercacheKey(List<String> cacheKey)A list of keys from “parameters” attribute value whose values will be added to the cache key.CustomAuthenticationPolicy.Buildercopy(CustomAuthenticationPolicy model)CustomAuthenticationPolicy.BuilderfunctionId(String functionId)The OCID of the Oracle Functions function resource.CustomAuthenticationPolicy.BuilderisAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed)CustomAuthenticationPolicy.Builderparameters(Map<String,String> parameters)A map where key is a user defined string and value is a context expressions whose values will be sent to the custom auth function.CustomAuthenticationPolicy.BuildertokenHeader(String tokenHeader)The name of the header containing the authentication token.CustomAuthenticationPolicy.BuildertokenQueryParam(String tokenQueryParam)The name of the query parameter containing the authentication token.CustomAuthenticationPolicy.BuildervalidationFailurePolicy(ValidationFailurePolicy validationFailurePolicy)
-
-
-
Method Detail
-
isAnonymousAccessAllowed
public CustomAuthenticationPolicy.Builder isAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed)
-
functionId
public CustomAuthenticationPolicy.Builder functionId(String functionId)
The OCID of the Oracle Functions function resource.- Parameters:
functionId- the value to set- Returns:
- this builder
-
tokenHeader
public CustomAuthenticationPolicy.Builder tokenHeader(String tokenHeader)
The name of the header containing the authentication token.- Parameters:
tokenHeader- the value to set- Returns:
- this builder
-
tokenQueryParam
public CustomAuthenticationPolicy.Builder tokenQueryParam(String tokenQueryParam)
The name of the query parameter containing the authentication token.- Parameters:
tokenQueryParam- the value to set- Returns:
- this builder
-
parameters
public CustomAuthenticationPolicy.Builder parameters(Map<String,String> parameters)
A map where key is a user defined string and value is a context expressions whose values will be sent to the custom auth function.Values should contain an expression. Example: {“foo”: “request.header[abc]”}
- Parameters:
parameters- the value to set- Returns:
- this builder
-
cacheKey
public CustomAuthenticationPolicy.Builder cacheKey(List<String> cacheKey)
A list of keys from “parameters” attribute value whose values will be added to the cache key.- Parameters:
cacheKey- the value to set- Returns:
- this builder
-
validationFailurePolicy
public CustomAuthenticationPolicy.Builder validationFailurePolicy(ValidationFailurePolicy validationFailurePolicy)
-
build
public CustomAuthenticationPolicy build()
-
copy
public CustomAuthenticationPolicy.Builder copy(CustomAuthenticationPolicy model)
-
-