Package sk.ipesoft.d2000.d2japi
Enum ChangePasswordResult
- java.lang.Object
-
- java.lang.Enum<ChangePasswordResult>
-
- sk.ipesoft.d2000.d2japi.ChangePasswordResult
-
public enum ChangePasswordResult extends java.lang.Enum<ChangePasswordResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description emptyPasswordIsNotAllowed
Empty new password is not allowed.invalidOldPassword
Old password was not valid.notEnoughDigits
New password does not meet minimal number of digits requirement.notEnoughNonDigitCharacters
New password does not meet minimal number of non-digit characters requirement.notEnoughSpecialCharacters
New password does not meet minimal number of special characters requirement.notEnoughtLowerCaseLetters
New password does not meet minimal number of lower case letters requirement.notEnoughtUpperCaseLetters
New password does not meet minimal number of upper case letters requirement.ok
Password was changed successfully.tooManySameConsecutiveCharactgers
New password does not meet maximal number of same consecutive characters requirement.tooShort
New password does not meet minimal lenght requirement.tooSimilar
New password does not meet maximal percentage of similarity requirement.unspecifiedError
Unspecified error occured.userAccountIsBeingEdited
User account object is locked by another process.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChangePasswordResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ChangePasswordResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ok
public static final ChangePasswordResult ok
Password was changed successfully.
-
tooShort
public static final ChangePasswordResult tooShort
New password does not meet minimal lenght requirement.
-
notEnoughDigits
public static final ChangePasswordResult notEnoughDigits
New password does not meet minimal number of digits requirement.
-
tooSimilar
public static final ChangePasswordResult tooSimilar
New password does not meet maximal percentage of similarity requirement.
-
userAccountIsBeingEdited
public static final ChangePasswordResult userAccountIsBeingEdited
User account object is locked by another process.
-
unspecifiedError
public static final ChangePasswordResult unspecifiedError
Unspecified error occured.
-
notEnoughNonDigitCharacters
public static final ChangePasswordResult notEnoughNonDigitCharacters
New password does not meet minimal number of non-digit characters requirement.
-
tooManySameConsecutiveCharactgers
public static final ChangePasswordResult tooManySameConsecutiveCharactgers
New password does not meet maximal number of same consecutive characters requirement.
-
notEnoughSpecialCharacters
public static final ChangePasswordResult notEnoughSpecialCharacters
New password does not meet minimal number of special characters requirement.
-
notEnoughtLowerCaseLetters
public static final ChangePasswordResult notEnoughtLowerCaseLetters
New password does not meet minimal number of lower case letters requirement.
-
notEnoughtUpperCaseLetters
public static final ChangePasswordResult notEnoughtUpperCaseLetters
New password does not meet minimal number of upper case letters requirement.
-
invalidOldPassword
public static final ChangePasswordResult invalidOldPassword
Old password was not valid.
-
emptyPasswordIsNotAllowed
public static final ChangePasswordResult emptyPasswordIsNotAllowed
Empty new password is not allowed.
-
-
Method Detail
-
values
public static ChangePasswordResult[] 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 (ChangePasswordResult c : ChangePasswordResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChangePasswordResult 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 namejava.lang.NullPointerException
- if the argument is null
-
-