Class AbstractPasswordPolicyResponder
- java.lang.Object
-
- org.apache.directory.ldap.client.template.AbstractPasswordPolicyResponder
-
- All Implemented Interfaces:
PasswordPolicyResponder
public abstract class AbstractPasswordPolicyResponder extends Object implements PasswordPolicyResponder
A base, abstract, implementation ofPasswordPolicyResponder
. Extend this class and override success(PasswordPolicy), fail(ResultResponse, PasswordPolicy, ResultCodeEnum), or exception(LdapException). If that does not offer enough flexibility, you must implement PasswordPolicyResponder yourself.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordWarning
process(PasswordPolicyOperation operation)
Execute theoperation
and translate the outcome as follows: SUCCESS: return null WARNING: returnPasswordWarning
FAILURE: throwPasswordException
-
-
-
Method Detail
-
process
public final PasswordWarning process(PasswordPolicyOperation operation) throws PasswordException
Execute theoperation
and translate the outcome as follows:- SUCCESS: return null
- WARNING: return
PasswordWarning
- FAILURE: throw
PasswordException
- Specified by:
process
in interfacePasswordPolicyResponder
- Parameters:
operation
- An operation whose outcome implies password policy information- Returns:
- A
PasswordWarning
if warnings are present, or null if completely successful. - Throws:
PasswordException
- If theoperation
was a failure.
-
-