Class CredentialsProcessor
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.projector.credentials.CredentialsProcessor
-
- All Implemented Interfaces:
ProjectorProcessor
@Component public class CredentialsProcessor extends Object implements ProjectorProcessor
Processor for focus credentials. Has two main responsibilities corresponding to its entry points: 1. processFocusCredentials(..) Validates the credentials, checks policies (complexity, history, etc.), adds metadata, etc. It is used during Projector execution - as part of FocusProcessor run. (Note that these activities are more or less delegated to CredentialPolicyEvaluator.) 2. transformFocusExecutionDelta(..): Modifies the execution deltas to hash or remove credentials if needed. This is done during change execution, called from ChangeExecutor.- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description CredentialsProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <F extends ObjectType>
ValuePolicyTypedeterminePasswordPolicy(LensFocusContext<F> focusContext)
Legacy.<F extends FocusType>
voidprocessFocusCredentials(LensContext<F> context, XMLGregorianCalendar now, Task task, OperationResult result)
<O extends ObjectType>
ObjectDelta<O>transformFocusExecutionDelta(LensContext<O> context, ObjectDelta<O> focusDelta)
Called from ChangeExecutor.
-
-
-
Method Detail
-
processFocusCredentials
public <F extends FocusType> void processFocusCredentials(LensContext<F> context, XMLGregorianCalendar now, Task task, OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, PolicyViolationException, CommunicationException, ConfigurationException, SecurityViolationException
-
transformFocusExecutionDelta
public <O extends ObjectType> ObjectDelta<O> transformFocusExecutionDelta(LensContext<O> context, ObjectDelta<O> focusDelta) throws SchemaException, EncryptionException
Called from ChangeExecutor. Will modify the execution deltas to hash or remove credentials if needed.- Throws:
SchemaException
EncryptionException
-
determinePasswordPolicy
public <F extends ObjectType> ValuePolicyType determinePasswordPolicy(LensFocusContext<F> focusContext)
Legacy. Invoked from mappings. TODO: fix
-
-