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 policy, int defaultLength, boolean generateMinimalSize, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult) validateValue
(String newValue, ValuePolicyType pp, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult) validateValue
(String newValue, ValuePolicyType pp, ObjectBasedValuePolicyOriginResolver<?> originResolver, List<LocalizableMessage> messages, String shortDesc, Task task, OperationResult parentResult)
-
Constructor Details
-
ValuePolicyProcessor
public ValuePolicyProcessor() -
ValuePolicyProcessor
-
-
Method Details
-
getExpressionFactory
-
generate
public String generate(ItemPath path, ValuePolicyType policy, int defaultLength, boolean generateMinimalSize, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult) throws ExpressionEvaluationException, SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException -
validateValue
public List<StringLimitationResult> validateValue(String newValue, ValuePolicyType pp, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException -
validateValue
public List<StringLimitationResult> validateValue(String newValue, ValuePolicyType pp, ObjectBasedValuePolicyOriginResolver<?> originResolver, List<LocalizableMessage> messages, String shortDesc, Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-