public class Scope
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Scope |
FRIEND |
static Scope |
GROUP |
static Scope |
MESSAGE |
static Scope |
OC_ADDRESS |
static Scope |
OC_BIRTHDATE |
static Scope |
OC_EMAIL
Permission to get the user's email address.
|
static Scope |
OC_GENDER |
static Scope |
OC_PHONE_NUMBER |
static Scope |
OC_REAL_NAME |
static Scope |
ONE_TIME_SHARE |
static Scope |
OPENID_CONNECT
Permission to get an ID token that includes the user information.
|
static Scope |
PROFILE
Permission to get the user's profile information.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Scope(java.lang.String code) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
convertToCodeList(java.util.List<Scope> scopeList) |
static java.util.List<Scope> |
convertToScopeList(java.util.List<java.lang.String> scopeCodeList) |
boolean |
equals(java.lang.Object o) |
static Scope |
findScope(java.lang.String scopeCode) |
java.lang.String |
getCode() |
int |
hashCode() |
static java.lang.String |
join(java.util.List<Scope> scopes) |
static java.util.List<Scope> |
parseToList(java.lang.String scopeCodeStr) |
java.lang.String |
toString() |
public static final Scope PROFILE
public static final Scope FRIEND
public static final Scope GROUP
public static final Scope MESSAGE
public static final Scope OPENID_CONNECT
public static final Scope OC_EMAIL
public static final Scope OC_PHONE_NUMBER
public static final Scope OC_GENDER
public static final Scope OC_BIRTHDATE
public static final Scope OC_ADDRESS
public static final Scope OC_REAL_NAME
public static final Scope ONE_TIME_SHARE
@Nullable public static Scope findScope(java.lang.String scopeCode)
public static java.lang.String join(@Nullable
java.util.List<Scope> scopes)
public static java.util.List<Scope> parseToList(@Nullable java.lang.String scopeCodeStr)
scopeCodeStr - A space separated string, that lists several scopes.public static java.util.List<Scope> convertToScopeList(java.util.List<java.lang.String> scopeCodeList)
public static java.util.List<java.lang.String> convertToCodeList(java.util.List<Scope> scopeList)
@NonNull public java.lang.String getCode()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object