|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Role>
com.nimbusds.oauth2.sdk.Role
public enum Role
Enumeration of OAuth 2.0 roles.
Related specifications:
Enum Constant Summary | |
---|---|
AUTHORIZATION_SERVER
The server issuing access tokens to the client after successfully authenticating the resource owner and obtaining authorization. |
|
CLIENT
An application making protected resource requests on behalf of the resource owner and with its authorization. |
|
RESOURCE_OWNER
An entity capable of granting access to a protected resource. |
|
RESOURCE_SERVER
The server hosting the protected resources, capable of accepting and responding to protected resource requests using access tokens. |
Method Summary | |
---|---|
static Role |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Role[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Role RESOURCE_OWNER
public static final Role RESOURCE_SERVER
public static final Role CLIENT
public static final Role AUTHORIZATION_SERVER
Method Detail |
---|
public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static Role valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |