org.apache.oltu.oauth2.common
Enum OAuthProviderType

java.lang.Object
  extended by java.lang.Enum<OAuthProviderType>
      extended by org.apache.oltu.oauth2.common.OAuthProviderType
All Implemented Interfaces:
Serializable, Comparable<OAuthProviderType>

public enum OAuthProviderType
extends Enum<OAuthProviderType>

An enumeration of pre-identified and well known OAuth 2 providers, along with their authorization and token endpoints.


Enum Constant Summary
FACEBOOK
           
FOURSQUARE
           
GITHUB
           
GOOGLE
           
INSTAGRAM
           
LINKEDIN
           
MICROSOFT
           
PAYPAL
           
REDDIT
           
SALESFORCE
           
YAMMER
           
 
Method Summary
 String getAuthzEndpoint()
          Get the authorization endpoint
 String getProviderName()
          Get the provider name
 String getTokenEndpoint()
          Get the access token endpoint
static OAuthProviderType valueOf(String name)
          Returns 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
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FACEBOOK

public static final OAuthProviderType FACEBOOK

FOURSQUARE

public static final OAuthProviderType FOURSQUARE

GITHUB

public static final OAuthProviderType GITHUB

GOOGLE

public static final OAuthProviderType GOOGLE

INSTAGRAM

public static final OAuthProviderType INSTAGRAM

LINKEDIN

public static final OAuthProviderType LINKEDIN

MICROSOFT

public static final OAuthProviderType MICROSOFT

PAYPAL

public static final OAuthProviderType PAYPAL

REDDIT

public static final OAuthProviderType REDDIT

SALESFORCE

public static final OAuthProviderType SALESFORCE

YAMMER

public static final OAuthProviderType YAMMER
Method Detail

values

public static OAuthProviderType[] 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 (OAuthProviderType c : OAuthProviderType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OAuthProviderType 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 name
NullPointerException - if the argument is null

getProviderName

public String getProviderName()
Get the provider name

Returns:
Returns the provider name

getAuthzEndpoint

public String getAuthzEndpoint()
Get the authorization endpoint

Returns:
Returns the authorization endpoint

getTokenEndpoint

public String getTokenEndpoint()
Get the access token endpoint

Returns:
Returns the access token endpoint


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.