Enum RegistrationResult
- java.lang.Object
-
- java.lang.Enum<RegistrationResult>
-
- com.sun.identity.authentication.modules.membership.RegistrationResult
-
- All Implemented Interfaces:
Serializable,Comparable<RegistrationResult>
public enum RegistrationResult extends Enum<RegistrationResult>
The enum wraps up all of the possible registration error states in the Membership module- Author:
- steve
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MISSING_REQ_FIELD_ERRORNO_CONFIRMATION_ERRORNO_ERRORNO_PASSWORD_ERRORNO_USER_NAME_ERRORPASSWORD_MISMATCH_ERRORPASSWORD_TOO_SHORTPROFILE_ERRORUSER_EXISTS_ERRORUSER_PASSWORD_SAME_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static RegistrationResultvalueOf(String name)Returns the enum constant of this type with the specified name.static RegistrationResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_USER_NAME_ERROR
public static final RegistrationResult NO_USER_NAME_ERROR
-
NO_PASSWORD_ERROR
public static final RegistrationResult NO_PASSWORD_ERROR
-
NO_CONFIRMATION_ERROR
public static final RegistrationResult NO_CONFIRMATION_ERROR
-
PASSWORD_MISMATCH_ERROR
public static final RegistrationResult PASSWORD_MISMATCH_ERROR
-
USER_EXISTS_ERROR
public static final RegistrationResult USER_EXISTS_ERROR
-
MISSING_REQ_FIELD_ERROR
public static final RegistrationResult MISSING_REQ_FIELD_ERROR
-
USER_PASSWORD_SAME_ERROR
public static final RegistrationResult USER_PASSWORD_SAME_ERROR
-
PASSWORD_TOO_SHORT
public static final RegistrationResult PASSWORD_TOO_SHORT
-
NO_ERROR
public static final RegistrationResult NO_ERROR
-
PROFILE_ERROR
public static final RegistrationResult PROFILE_ERROR
-
-
Method Detail
-
values
public static RegistrationResult[] 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 (RegistrationResult c : RegistrationResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegistrationResult 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<RegistrationResult>
-
-