Enum OAuthProviderType

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

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 Details

  • Method Details

    • values

      public static OAuthProviderType[] 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

      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