Enum PasswordCompareStrategyType
- java.lang.Object
-
- java.lang.Enum<PasswordCompareStrategyType>
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.PasswordCompareStrategyType
-
- All Implemented Interfaces:
Serializable
,Comparable<PasswordCompareStrategyType>
public enum PasswordCompareStrategyType extends Enum<PasswordCompareStrategyType>
The way how a resource password is compared with the current password.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PasswordCompareStrategyType
fromValue(String v)
String
value()
static PasswordCompareStrategyType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PasswordCompareStrategyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final PasswordCompareStrategyType AUTO
Auto-detect comparison method. If no way of comparison is possible then an error is indicated. Note: Currently this strategy will end with an error if there is no cached password value.
-
ERROR
public static final PasswordCompareStrategyType ERROR
There is no way to compare password. Any operation to that tries to compare the password on the resource should end up with an error.
-
CACHED
public static final PasswordCompareStrategyType CACHED
Compare password with the value cached in the shadow. This setting assumes that passwords for all accounts are properly cached. Therefore if there is no password value in the shadow then we assume that there is no resource password.
-
-
Method Detail
-
values
public static PasswordCompareStrategyType[] 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 (PasswordCompareStrategyType c : PasswordCompareStrategyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PasswordCompareStrategyType 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
-
value
public String value()
-
fromValue
public static PasswordCompareStrategyType fromValue(String v)
-
-