Class CredentialPolicyEvaluator<R extends AbstractCredentialType,P extends CredentialPolicyType,F extends FocusType>
java.lang.Object
com.evolveum.midpoint.model.impl.lens.projector.credentials.CredentialPolicyEvaluator<R,P,F>
- Direct Known Subclasses:
NoncePolicyEvaluator
,PasswordPolicyEvaluator
,SecurityQuestionsPolicyEvaluator
public abstract class CredentialPolicyEvaluator<R extends AbstractCredentialType,P extends CredentialPolicyType,F extends FocusType>
extends Object
Processor for evaluating credential policies on the focus object.
This class is processing the credential-related settings of security policy: credential lifetime, history and so on.
Specific responsibilities:
1) Validates the operation (add, modify) with regards to security policies.
2) Emits secondary deltas related to changes being executed (e.g. password history, metadata, etc).
This class is supposed to be quite generic. It should be able to operate on all credential types.
This class does NOT directly deal with details of value policies, validation and generation. That task is
delegated to
ValuePolicyProcessor
.- Author:
- mamut, katkav, semancik
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
CredentialPolicyEvaluator.Builder<F extends FocusType>
-
Method Summary
-
Method Details
-
getCredentialsContainerPath
E.g. "credentials/password" -
getCredentialHumanReadableName
-
getCredentialHumanReadableKey
-
supportsHistory
protected boolean supportsHistory() -
determineEffectiveCredentialPolicy
- Throws:
SchemaException
-
getSecurityPolicy
-
process
public void process() throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, PolicyViolationException, CommunicationException, ConfigurationException, SecurityViolationExceptionMain entry point. -
validateCredentialContainerValues
protected void validateCredentialContainerValues(PrismContainerValue<R> cVal) throws PolicyViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-