public enum AuthenticationScheme extends Enum<AuthenticationScheme>
The Authentication Scheme setting is helpful in cases where the code is run in a platform where the header information for outgoing HTTP requests is modified and thus causing communication issues.
One of SSWS (Okta session bearer token) (or) OAUTH2 authentication schemes should be used for the management SDK, NONE
should be used for unauthenticated requests.
Enum Constant and Description |
---|
NONE |
OAUTH2_PRIVATE_KEY |
SSWS |
Modifier and Type | Method and Description |
---|---|
String |
getRequestAuthenticatorClassName() |
static AuthenticationScheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationScheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationScheme SSWS
public static final AuthenticationScheme OAUTH2_PRIVATE_KEY
public static final AuthenticationScheme NONE
public static AuthenticationScheme[] values()
for (AuthenticationScheme c : AuthenticationScheme.values()) System.out.println(c);
public static AuthenticationScheme valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getRequestAuthenticatorClassName()
Copyright © 2017–2023 Okta. All rights reserved.