Class ValuePolicyProcessor
- java.lang.Object
-
- com.evolveum.midpoint.model.common.stringpolicy.ValuePolicyProcessor
-
@Component public class ValuePolicyProcessor extends Object
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
Constructors Constructor Description ValuePolicyProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generate(ItemPath path, ValuePolicyType policy, int defaultLength, boolean generateMinimalSize, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult)
ExpressionFactory
getExpressionFactory()
void
setExpressionFactory(ExpressionFactory expressionFactory)
boolean
validateValue(String newValue, ValuePolicyType pp, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult)
boolean
validateValue(String newValue, ValuePolicyType pp, ObjectBasedValuePolicyOriginResolver<?> originResolver, List<LocalizableMessage> messages, String shortDesc, Task task, OperationResult parentResult)
-
-
-
Method Detail
-
getExpressionFactory
public ExpressionFactory getExpressionFactory()
-
setExpressionFactory
public void setExpressionFactory(ExpressionFactory expressionFactory)
-
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 boolean validateValue(String newValue, ValuePolicyType pp, ObjectBasedValuePolicyOriginResolver<?> originResolver, String shortDesc, Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-
validateValue
public boolean validateValue(String newValue, ValuePolicyType pp, ObjectBasedValuePolicyOriginResolver<?> originResolver, List<LocalizableMessage> messages, String shortDesc, Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-
-