public enum StandardScope extends Enum<StandardScope>
Enum Constant and Description |
---|
ADDRESS
"address" , which requests "address" claim. |
EMAIL
"email" , which requests "email" and "email_verified" claims. |
OFFLINE_ACCESS
"offline_access" , which requests that an OAuth 2.0 Refresh Token
be issued that can be used to obtain an Access Token that grants access to
the End-User's UserInfo Endpoint even when the End-User is not present
(not logged in). |
OPENID
"openid" , which must be contained in every OpenID Connect
Authentication Request. |
PHONE
"phone" , which requests "phone_number" and "phone_number_verified" claims. |
PROFILE
"profile" , which requests the following claims:
"name" , "family_name" , "given_name" ,
"middle_name" , "nickname" , "preferred_username" ,
"profile" , "picture" , "website" , "gender" ,
"birthdate" , "zoneinfo" , "locale" and
"updated_at" . |
Modifier and Type | Method and Description |
---|---|
static StandardScope |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static StandardScope |
parse(String scope)
Convert
String to StandardScope . |
static StandardScope[] |
toArray(int bits) |
static int |
toBits(EnumSet<StandardScope> set) |
static EnumSet<StandardScope> |
toSet(int bits) |
static EnumSet<StandardScope> |
toSet(StandardScope[] array) |
String |
toString() |
static StandardScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardScope ADDRESS
"address"
, which requests "address"
claim.public static final StandardScope EMAIL
"email"
, which requests "email"
and "email_verified"
claims.public static final StandardScope OPENID
"openid"
, which must be contained in every OpenID Connect
Authentication Request.public static final StandardScope OFFLINE_ACCESS
"offline_access"
, which requests that an OAuth 2.0 Refresh Token
be issued that can be used to obtain an Access Token that grants access to
the End-User's UserInfo Endpoint even when the End-User is not present
(not logged in).public static final StandardScope PHONE
"phone"
, which requests "phone_number"
and "phone_number_verified"
claims.public static final StandardScope PROFILE
"profile"
, which requests the following claims:
"name"
, "family_name"
, "given_name"
,
"middle_name"
, "nickname"
, "preferred_username"
,
"profile"
, "picture"
, "website"
, "gender"
,
"birthdate"
, "zoneinfo"
, "locale"
and
"updated_at"
.public static StandardScope[] values()
for (StandardScope c : StandardScope.values()) System.out.println(c);
public static StandardScope 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 short getValue()
public String toString()
toString
in class Enum<StandardScope>
public static StandardScope getByValue(short value)
value
- The integer representation of the instance to find.null
if not found.public static StandardScope parse(String scope)
String
to StandardScope
.scope
- A standard scope name. For example, "openid"
.StandardScope
instance, or null
.public static int toBits(EnumSet<StandardScope> set)
public static StandardScope[] toArray(int bits)
public static EnumSet<StandardScope> toSet(int bits)
public static EnumSet<StandardScope> toSet(StandardScope[] array)
Copyright © 2023. All rights reserved.