public static class CustomAuthenticationPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CustomAuthenticationPolicy |
build() |
CustomAuthenticationPolicy.Builder |
cacheKey(List<String> cacheKey)
A list of keys from “parameters” attribute value whose values will be added to the cache
key.
|
CustomAuthenticationPolicy.Builder |
copy(CustomAuthenticationPolicy model) |
CustomAuthenticationPolicy.Builder |
functionId(String functionId)
The OCID of the
Oracle Functions function resource.
|
CustomAuthenticationPolicy.Builder |
isAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed) |
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.
|
CustomAuthenticationPolicy.Builder |
tokenHeader(String tokenHeader)
The name of the header containing the authentication token.
|
CustomAuthenticationPolicy.Builder |
tokenQueryParam(String tokenQueryParam)
The name of the query parameter containing the authentication token.
|
CustomAuthenticationPolicy.Builder |
validationFailurePolicy(ValidationFailurePolicy validationFailurePolicy) |
public CustomAuthenticationPolicy.Builder isAnonymousAccessAllowed(Boolean isAnonymousAccessAllowed)
public CustomAuthenticationPolicy.Builder functionId(String functionId)
The OCID of the Oracle Functions function resource.
functionId
- the value to setpublic CustomAuthenticationPolicy.Builder tokenHeader(String tokenHeader)
The name of the header containing the authentication token.
tokenHeader
- the value to setpublic CustomAuthenticationPolicy.Builder tokenQueryParam(String tokenQueryParam)
The name of the query parameter containing the authentication token.
tokenQueryParam
- the value to setpublic 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
- the value to setpublic CustomAuthenticationPolicy.Builder cacheKey(List<String> cacheKey)
A list of keys from “parameters” attribute value whose values will be added to the cache key.
cacheKey
- the value to setpublic CustomAuthenticationPolicy.Builder validationFailurePolicy(ValidationFailurePolicy validationFailurePolicy)
public CustomAuthenticationPolicy build()
public CustomAuthenticationPolicy.Builder copy(CustomAuthenticationPolicy model)
Copyright © 2016–2024. All rights reserved.