Enum ServiceProviderToken.Authorization
- java.lang.Object
-
- java.lang.Enum<ServiceProviderToken.Authorization>
-
- com.atlassian.bitbucket.jenkins.internal.applink.oauth.serviceprovider.token.ServiceProviderToken.Authorization
-
- All Implemented Interfaces:
Serializable
,Comparable<ServiceProviderToken.Authorization>
- Enclosing class:
- ServiceProviderToken
public static enum ServiceProviderToken.Authorization extends Enum<ServiceProviderToken.Authorization>
Defines the status of request tokens.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHORIZED
The user has approved access.DENIED
The user has denied access.NONE
The user has neither approved nor denied access.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceProviderToken.Authorization
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServiceProviderToken.Authorization[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ServiceProviderToken.Authorization NONE
The user has neither approved nor denied access.
-
AUTHORIZED
public static final ServiceProviderToken.Authorization AUTHORIZED
The user has approved access.
-
DENIED
public static final ServiceProviderToken.Authorization DENIED
The user has denied access.
-
-
Method Detail
-
values
public static ServiceProviderToken.Authorization[] 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 (ServiceProviderToken.Authorization c : ServiceProviderToken.Authorization.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceProviderToken.Authorization valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-