public enum GrantType extends Enum<GrantType>
GrantType is a enum with three Grant Types
| Enum Constant and Description |
|---|
AUTHORIZATION_CODE |
CLIENT_CREDENTIALS |
SAML_AUTH_CODE |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
Returns the value of this grant type
|
void |
setValue(String value)
Sets the value of grant type based on value parameter
|
static GrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrantType CLIENT_CREDENTIALS
public static final GrantType AUTHORIZATION_CODE
public static final GrantType SAML_AUTH_CODE
private String value
public static GrantType[] values()
for (GrantType c : GrantType.values()) System.out.println(c);
public static GrantType 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 getValue()
public void setValue(String value)
value - the string value to setCopyright © 2016 ADP LLC. All rights reserved.