public enum ClaimsScope extends Enum<ClaimsScope>
| Enum Constant and Description |
|---|
ADDRESS
This scope (
"address") requests the following claims. |
EMAIL
This scope (
"email") requests the following claims. |
PHONE
This scope (
"phone") requests the following claims. |
PROFILE
This scope (
"profile") requests the following claims. |
| Modifier and Type | Method and Description |
|---|---|
static ClaimsScope |
getByName(String name)
Get a
ClaimsScope instance by a name. |
SortedSet<String> |
getClaims()
Get the list of claim names which are requested by this scope.
|
String |
getName()
Get the scope name in lower-case letters.
|
static ClaimsScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClaimsScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClaimsScope PROFILE
"profile") requests the following claims.
public static final ClaimsScope EMAIL
"email") requests the following claims.
public static final ClaimsScope ADDRESS
"address") requests the following claims.
public static final ClaimsScope PHONE
"phone") requests the following claims.
public static ClaimsScope[] values()
for (ClaimsScope c : ClaimsScope.values()) System.out.println(c);
public static ClaimsScope 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 getName()
public SortedSet<String> getClaims()
public static ClaimsScope getByName(String name)
ClaimsScope instance by a name.name - A scope name such as "profile".ClaimsScope instance, or null when
no instance has the specified name.Copyright © 2019. All rights reserved.