Package org.apache.oltu.oauth2.common
Enum OAuthProviderType
- All Implemented Interfaces:
Serializable,Comparable<OAuthProviderType>,java.lang.constant.Constable
An enumeration of pre-identified and well known OAuth 2 providers, along
with their authorization and token endpoints.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGet the authorization endpointGet the provider nameGet the access token endpointstatic OAuthProviderTypeReturns the enum constant of this type with the specified name.static OAuthProviderType[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
FACEBOOK
-
FOURSQUARE
-
GITHUB
-
GOOGLE
-
INSTAGRAM
-
LINKEDIN
-
MICROSOFT
-
PAYPAL
-
REDDIT
-
SALESFORCE
-
YAMMER
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getProviderName
Get the provider name- Returns:
- Returns the provider name
-
getAuthzEndpoint
Get the authorization endpoint- Returns:
- Returns the authorization endpoint
-
getTokenEndpoint
Get the access token endpoint- Returns:
- Returns the access token endpoint
-