Package com.iizix.comm.oauth
Enum AuthenticationProvider
- java.lang.Object
- java.lang.Enum<AuthenticationProvider>
- com.iizix.comm.oauth.AuthenticationProvider
 
 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<AuthenticationProvider>
 - public enum AuthenticationProvider extends java.lang.Enum<AuthenticationProvider> Authentication provider for sign in.- Localized texts for the - providerNameis possible with text IDs starting with- "authProvider."+<i>providerName</i>. Currently, only English names are provided. This can be overridden by the System App or localized in the app's text tables.- Localized text IDs- authProvider.Internal = Internal authProvider.Apple = Apple authProvider.Facebook = Facebook authProvider.Google = Google authProvider.LinkedIn = LinkedIn authProvider.Microsoft = Microsoft authProvider.Twitter = Twitter - Author:
- Christopher Mindus
 
- Enum Constant Summary- Enum Constants - Enum Constant - Description - AppleApple OAuth ??? TODO ??? authentication provider.- FacebookFacebook OAuth 2.0 authentication provider.- GoogleGoogle OAuth 2.0 authentication provider.- InternalThe internal login authentication with user ID and password.- LinkedInLinkedIn OAuth 2.0 authentication provider.- MicrosoftMicrosoft identity platform OAuth 2.0 authentication provider.- TwitterTwitter OAuth 1.0a authentication provider.
 - Field Summary- Fields - Modifier and Type - Field - Description - boolean- isExternalFlag for external authentication provider.- java.lang.String- providerNameThe name of the authentication provider.- java.lang.String- textIDThe text ID used for localized strings:- "authProvider."+name()".
 - Method Summary- All Methods Static Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - static AuthenticationProvider- fromProviderName(java.lang.String providerName)Gets the authentication provider from a String that must match the authentication provider name.- java.lang.String- getLocalizedName()Gets the localized name of the provider.- java.lang.String- getLocalizedName(SessionInfo sessionInfo)Gets the localized name of the provider.- java.lang.String- getLocalizedName(ILocaleString localeString)Gets the localized name of the provider.- static AuthenticationProvider- valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.- static AuthenticationProvider[]- values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- Enum Constant Detail- Internal- public static final AuthenticationProvider Internal The internal login authentication with user ID and password.
 - Apple- public static final AuthenticationProvider Apple Apple OAuth ??? TODO ??? authentication provider.
 - Facebook- public static final AuthenticationProvider Facebook Facebook OAuth 2.0 authentication provider.
 - Google- public static final AuthenticationProvider Google Google OAuth 2.0 authentication provider.
 - LinkedIn- public static final AuthenticationProvider LinkedIn LinkedIn OAuth 2.0 authentication provider.
 - Microsoft- public static final AuthenticationProvider Microsoft Microsoft identity platform OAuth 2.0 authentication provider.
 - Twitter- public static final AuthenticationProvider Twitter Twitter OAuth 1.0a authentication provider.
 
 - Method Detail- values- public static AuthenticationProvider[] 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 (AuthenticationProvider c : AuthenticationProvider.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - valueOf- public static AuthenticationProvider valueOf(java.lang.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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - getLocalizedName- public java.lang.String getLocalizedName() Gets the localized name of the provider.- Returns:
- The localized name of the provider with a fallback to the English name.
 
 - getLocalizedName- public java.lang.String getLocalizedName(SessionInfo sessionInfo) Gets the localized name of the provider.- Parameters:
- sessionInfo- The session information,- nullto look it up from the current thread.
- Returns:
- The localized name of the provider with a fallback to the English name.
 
 - getLocalizedName- public java.lang.String getLocalizedName(ILocaleString localeString) Gets the localized name of the provider.- Parameters:
- localeString- The- localeStringinstance to used for localization, or- nullfor- fallbackreturn value if text ID is not found.
- Returns:
- The localized name of the provider with a fallback to the English name.
 
 - fromProviderName- public static AuthenticationProvider fromProviderName(java.lang.String providerName) Gets the authentication provider from a String that must match the authentication provider name.- Parameters:
- providerName- The authentication provider name (case insensitive).
- Returns:
- The AuthenticationProviderthat matches the name, ornullif none was found.