public enum ClientCredentialsGrantType extends Enum<ClientCredentialsGrantType>
Enum Constant and Description |
---|
CLIENT_CREDENTIALS
Indicates that the client credentials should be used directly to retrieve an access token from the XSUAA Service.
|
USER_TOKEN
Indicates that the client credentials should be used to retrieve an access token for the user contained in the
current
AuthToken . |
Modifier and Type | Method and Description |
---|---|
static ClientCredentialsGrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientCredentialsGrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientCredentialsGrantType CLIENT_CREDENTIALS
public static final ClientCredentialsGrantType USER_TOKEN
AuthToken
.public static ClientCredentialsGrantType[] values()
for (ClientCredentialsGrantType c : ClientCredentialsGrantType.values()) System.out.println(c);
public static ClientCredentialsGrantType 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 nullCopyright © 2019 SAP SE. All rights reserved.