public static enum EndpointCredentials.CredentialType extends Enum<EndpointCredentials.CredentialType> implements BmcEnum
The credential type. NONE indicates credentials are not needed to access the endpoint. BASIC_AUTH represents a username and password based model. TOKEN could be static or dynamic. In case of dynamic tokens, also specify the endpoint from which the token must be fetched.
Enum Constant and Description |
---|
BasicAuth |
DynamicToken |
None |
StaticToken |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by
this version of the SDK.
|
Modifier and Type | Method and Description |
---|---|
static EndpointCredentials.CredentialType |
create(String key) |
String |
getValue() |
static EndpointCredentials.CredentialType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EndpointCredentials.CredentialType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndpointCredentials.CredentialType None
public static final EndpointCredentials.CredentialType BasicAuth
public static final EndpointCredentials.CredentialType StaticToken
public static final EndpointCredentials.CredentialType DynamicToken
public static final EndpointCredentials.CredentialType UnknownEnumValue
public static EndpointCredentials.CredentialType[] values()
for (EndpointCredentials.CredentialType c : EndpointCredentials.CredentialType.values()) System.out.println(c);
public static EndpointCredentials.CredentialType 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 static EndpointCredentials.CredentialType create(String key)
Copyright © 2016–2025. All rights reserved.