public enum CommonOAuth2Provider extends java.lang.Enum<CommonOAuth2Provider>
builders pre-configured with sensible defaults.| Modifier and Type | Method and Description |
|---|---|
abstract ClientRegistration.Builder |
getBuilder(java.lang.String registrationId)
Create a new
ClientRegistration.Builder pre-configured with provider defaults. |
protected ClientRegistration.Builder |
getBuilder(java.lang.String registrationId,
ClientAuthenticationMethod method,
java.lang.String redirectUri) |
static CommonOAuth2Provider |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommonOAuth2Provider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommonOAuth2Provider GOOGLE
public static final CommonOAuth2Provider GITHUB
public static final CommonOAuth2Provider FACEBOOK
public static final CommonOAuth2Provider OKTA
public static CommonOAuth2Provider[] values()
for (CommonOAuth2Provider c : CommonOAuth2Provider.values()) System.out.println(c);
public static CommonOAuth2Provider valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullprotected final ClientRegistration.Builder getBuilder(java.lang.String registrationId, ClientAuthenticationMethod method, java.lang.String redirectUri)
public abstract ClientRegistration.Builder getBuilder(java.lang.String registrationId)
ClientRegistration.Builder pre-configured with provider defaults.registrationId - the registration-id used with the new builder