Class ValuePolicyProcessor
java.lang.Object
com.evolveum.midpoint.model.common.stringpolicy.ValuePolicyProcessor
Processor for values that match value policies (mostly passwords).
This class is supposed to process the parts of the value policy
as defined in the ValuePolicyType. So it will validate the values
and generate the values. It is NOT supposed to process
more complex credential policies such as password lifetime
and history.
- Author:
- mamut, semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerate
(ItemPath path, ValuePolicyType valuePolicy, int defaultLength, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult) Generates a value meeting the policy and/or the default length (which is used when no minimal length nor minimal unique characters are specified).validateValue
(String newValue, ValuePolicyType valuePolicy, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult)
-
Constructor Details
-
ValuePolicyProcessor
public ValuePolicyProcessor() -
ValuePolicyProcessor
-
-
Method Details
-
getExpressionFactory
-
generate
public String generate(ItemPath path, ValuePolicyType valuePolicy, int defaultLength, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult) throws ExpressionEvaluationException, SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException Generates a value meeting the policy and/or the default length (which is used when no minimal length nor minimal unique characters are specified). -
validateValue
public List<StringLimitationResult> validateValue(String newValue, ValuePolicyType valuePolicy, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-