@Generated(value="OracleSDKGenerator", comments="API Version: 20190501") public final class CustomAuthenticationPolicy extends AuthenticationPolicy
Use a function to validate a custom header or query parameter sent with the request authentication. A valid policy must specify either tokenHeader or tokenQueryParam.
CustomAuthenticationPolicy.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the CustomAuthenticationPolicy.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
CustomAuthenticationPolicy.Builder |
AuthenticationPolicy.Type
Constructor and Description |
---|
CustomAuthenticationPolicy(Boolean isAnonymousAccessAllowed,
String functionId,
String tokenHeader,
String tokenQueryParam)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CustomAuthenticationPolicy.Builder |
builder()
Create a new builder.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getFunctionId()
The OCID of the Oracle Functions function resource.
|
String |
getTokenHeader()
The name of the header containing the authentication token.
|
String |
getTokenQueryParam()
The name of the query parameter containing the authentication token.
|
int |
hashCode() |
CustomAuthenticationPolicy.Builder |
toBuilder() |
String |
toString() |
getIsAnonymousAccessAllowed
@Deprecated public CustomAuthenticationPolicy(Boolean isAnonymousAccessAllowed, String functionId, String tokenHeader, String tokenQueryParam)
public static CustomAuthenticationPolicy.Builder builder()
Create a new builder.
public CustomAuthenticationPolicy.Builder toBuilder()
public String getTokenHeader()
The name of the header containing the authentication token.
public String getTokenQueryParam()
The name of the query parameter containing the authentication token.
public String toString()
toString
in class AuthenticationPolicy
public boolean equals(Object o)
equals
in class AuthenticationPolicy
protected boolean canEqual(Object other)
canEqual
in class AuthenticationPolicy
public int hashCode()
hashCode
in class AuthenticationPolicy
Copyright © 2016–2022. All rights reserved.