public enum OAuthRole extends Enum<OAuthRole> implements org.springframework.security.core.GrantedAuthority
| Enum Constant and Description |
|---|
CLIENT
The client.
|
EVERYONE
Everyone.
|
TRUSTED_CLIENT
The trusted client.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthority()
GrantedAuthorities start with ROLE_.
|
static OAuthRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuthRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuthRole CLIENT
public static final OAuthRole TRUSTED_CLIENT
public static final OAuthRole EVERYONE
public static OAuthRole[] values()
for (OAuthRole c : OAuthRole.values()) System.out.println(c);
public static OAuthRole 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 getAuthority()
getAuthority in interface org.springframework.security.core.GrantedAuthorityCopyright © 2021 Global Crop Diversity Trust. All rights reserved.