Enum IdentityProviderCallbackStatus
- java.lang.Object
-
- java.lang.Enum<IdentityProviderCallbackStatus>
-
- org.cyclos.model.access.identityproviders.IdentityProviderCallbackStatus
-
- All Implemented Interfaces:
Serializable,Comparable<IdentityProviderCallbackStatus>
public enum IdentityProviderCallbackStatus extends Enum<IdentityProviderCallbackStatus>
The possible outcomes of an identity provider callback
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DENIEDThe user has denied the requestERRORAn error.LINKEDThe provider was linked to the currently authenticated userLOGIN_EMAILSuccessful login, and the user was not previously linked to the provider, but was matched by e-mail.LOGIN_LINKSuccessful login, and the user was previously linked to the providerLOGIN_NO_EMAILNo matching user was found for this provider, and no e-mail could be read from the provider.LOGIN_NO_MATCHNo matching user was found for this provider, neither by id nor e-mail.REGISTRATION_DATAThe profile data was read, and is available to get data for filling up the registration formREGISTRATION_DONEThe profile data was read, the user has been directly registered and a session has been created for the user.WIZARDThe profile data was read and was associated on the server with the given wizard execution.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IdentityProviderCallbackStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static IdentityProviderCallbackStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOGIN_LINK
public static final IdentityProviderCallbackStatus LOGIN_LINK
Successful login, and the user was previously linked to the provider
-
LOGIN_EMAIL
public static final IdentityProviderCallbackStatus LOGIN_EMAIL
Successful login, and the user was not previously linked to the provider, but was matched by e-mail. The link was automatically created.
-
LOGIN_NO_MATCH
public static final IdentityProviderCallbackStatus LOGIN_NO_MATCH
No matching user was found for this provider, neither by id nor e-mail. On the next login, if the user posts together the 'requestId' value and it matches a previously authenticated user, a link was automatically created.
-
LOGIN_NO_EMAIL
public static final IdentityProviderCallbackStatus LOGIN_NO_EMAIL
No matching user was found for this provider, and no e-mail could be read from the provider. On the next login, if the user posts together the 'requestId' and it matches a previously authenticated user, a link was automatically created.
-
REGISTRATION_DATA
public static final IdentityProviderCallbackStatus REGISTRATION_DATA
The profile data was read, and is available to get data for filling up the registration form
-
REGISTRATION_DONE
public static final IdentityProviderCallbackStatus REGISTRATION_DONE
The profile data was read, the user has been directly registered and a session has been created for the user.
-
WIZARD
public static final IdentityProviderCallbackStatus WIZARD
The profile data was read and was associated on the server with the given wizard execution.
-
LINKED
public static final IdentityProviderCallbackStatus LINKED
The provider was linked to the currently authenticated user
-
DENIED
public static final IdentityProviderCallbackStatus DENIED
The user has denied the request
-
ERROR
public static final IdentityProviderCallbackStatus ERROR
An error. An error message will be returned.
-
-
Method Detail
-
values
public static IdentityProviderCallbackStatus[] 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 (IdentityProviderCallbackStatus c : IdentityProviderCallbackStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdentityProviderCallbackStatus 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 nameNullPointerException- if the argument is null
-
-