Package org.pac4j.oauth.client
Enum Google2Client.Google2Scope
- java.lang.Object
-
- java.lang.Enum<Google2Client.Google2Scope>
-
- org.pac4j.oauth.client.Google2Client.Google2Scope
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Google2Client.Google2Scope>
- Enclosing class:
- Google2Client
public static enum Google2Client.Google2Scope extends java.lang.Enum<Google2Client.Google2Scope>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMAIL
EMAIL_AND_PROFILE
PROFILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Google2Client.Google2Scope
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Google2Client.Google2Scope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMAIL
public static final Google2Client.Google2Scope EMAIL
-
PROFILE
public static final Google2Client.Google2Scope PROFILE
-
EMAIL_AND_PROFILE
public static final Google2Client.Google2Scope EMAIL_AND_PROFILE
-
-
Method Detail
-
values
public static Google2Client.Google2Scope[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Google2Client.Google2Scope c : Google2Client.Google2Scope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Google2Client.Google2Scope valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-