public enum Scope extends java.lang.Enum<Scope> implements HasMessageKey
| Enum Constant and Description |
|---|
ACCOUNT_HISTORY
Get the full account history.
|
ACCOUNT_STATUS
Get the current account status.
|
ADDRESS
Standard address scope, which gives access to the user's physical address.
|
EMAIL
Standard email scope, which gives access to the user's e-mail address.
|
OFFLINE_ACCESS
Standard offline access scope, which enables refresh tokens.
|
OPENID
Standard openid scope, which enables the OpenID Connect features.
|
PAYMENT
Perform payments.
|
PHONE
Standard phone scope, which gives access to the user's phone number.
|
PROFILE
Standard profile scope, which gives access to claims such as full name,
login name, picture URL, custom fields and locale.
|
PROFILE_READ
Read the full user profile.
|
PROFILE_WRITE
Modify the full user profile.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.String> |
NAMES |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dependsOnOpenid()
Returns whether this scope requires the openid scope in order to be enabled
|
MessageKey |
getMessageKey() |
java.util.List<java.lang.String> |
getParameters() |
boolean |
isAllowAdmins() |
static Scope |
of(java.lang.String value)
Returns a scope by value, or null if not found
|
static java.util.Map<Scope,java.util.Map<java.lang.String,java.lang.String>> |
parse(java.lang.String scope)
Parses each scope together with its parameters
|
java.lang.String |
toString() |
static Scope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scope OPENID
public static final Scope PROFILE
public static final Scope EMAIL
public static final Scope PHONE
public static final Scope ADDRESS
public static final Scope OFFLINE_ACCESS
public static final Scope ACCOUNT_STATUS
type: Restrict to a specific account typepublic static final Scope ACCOUNT_HISTORY
type: Restrict to a specific account typepublic static final Scope PAYMENT
to: Payments to a specific useramount: Payments with a specific amountcurrency: Payments with a specific currency. When an amount is specified, this must also be,
unless the authenticated user have accounts in a single currency.public static final Scope PROFILE_READ
public static final Scope PROFILE_WRITE
public static Scope[] values()
for (Scope c : Scope.values()) System.out.println(c);
public static Scope valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Scope of(java.lang.String value)
public static java.util.Map<Scope,java.util.Map<java.lang.String,java.lang.String>> parse(java.lang.String scope)
java.lang.IllegalArgumentException - If any scope name isn't recognized, of if a scope has an unrecognized parameterpublic boolean dependsOnOpenid()
public MessageKey getMessageKey()
getMessageKey in interface HasMessageKeypublic java.util.List<java.lang.String> getParameters()
public boolean isAllowAdmins()
public java.lang.String toString()
toString in class java.lang.Enum<Scope>