@Generated(value="OracleSDKGenerator", comments="API Version: 20190501") public final class JwtAuthenticationPolicy extends AuthenticationPolicy
Validate a JWT token present in the header or query parameter. A valid policy must specify either tokenHeader or tokenQueryParam.
JwtAuthenticationPolicy.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 JwtAuthenticationPolicy.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 |
JwtAuthenticationPolicy.Builder |
AuthenticationPolicy.Type| Constructor and Description |
|---|
JwtAuthenticationPolicy(Boolean isAnonymousAccessAllowed,
String tokenHeader,
String tokenQueryParam,
String tokenAuthScheme,
List<String> issuers,
List<String> audiences,
List<JsonWebTokenClaim> verifyClaims,
Float maxClockSkewInSeconds,
PublicKeySet publicKeys)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static JwtAuthenticationPolicy.Builder |
builder()
Create a new builder.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
List<String> |
getAudiences()
The list of intended recipients for the token.
|
List<String> |
getIssuers()
A list of parties that could have issued the token.
|
Float |
getMaxClockSkewInSeconds()
The maximum expected time difference between the system clocks
of the token issuer and the API Gateway.
|
PublicKeySet |
getPublicKeys() |
String |
getTokenAuthScheme()
The authentication scheme that is to be used when authenticating
the token.
|
String |
getTokenHeader()
The name of the header containing the authentication token.
|
String |
getTokenQueryParam()
The name of the query parameter containing the authentication token.
|
List<JsonWebTokenClaim> |
getVerifyClaims()
A list of claims which should be validated to consider the token valid.
|
int |
hashCode() |
JwtAuthenticationPolicy.Builder |
toBuilder() |
String |
toString() |
getIsAnonymousAccessAllowed@Deprecated public JwtAuthenticationPolicy(Boolean isAnonymousAccessAllowed, String tokenHeader, String tokenQueryParam, String tokenAuthScheme, List<String> issuers, List<String> audiences, List<JsonWebTokenClaim> verifyClaims, Float maxClockSkewInSeconds, PublicKeySet publicKeys)
public static JwtAuthenticationPolicy.Builder builder()
Create a new builder.
public JwtAuthenticationPolicy.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 getTokenAuthScheme()
The authentication scheme that is to be used when authenticating the token. This must to be provided if "tokenHeader" is specified.
public List<JsonWebTokenClaim> getVerifyClaims()
A list of claims which should be validated to consider the token valid.
public Float getMaxClockSkewInSeconds()
The maximum expected time difference between the system clocks of the token issuer and the API Gateway.
public PublicKeySet getPublicKeys()
public String toString()
toString in class AuthenticationPolicypublic boolean equals(Object o)
equals in class AuthenticationPolicyprotected boolean canEqual(Object other)
canEqual in class AuthenticationPolicypublic int hashCode()
hashCode in class AuthenticationPolicyCopyright © 2016–2021. All rights reserved.