Class Addpwpolicy
- java.lang.Object
-
- org.apache.directory.fortress.core.ant.Addpwpolicy
-
public class Addpwpolicy extends Object
The class is used byFortressAntTask
to loadPwPolicy
s used to drivePwPolicyMgr.add(org.apache.directory.fortress.core.model.PwPolicy)
. It is not intended to be callable by programs outside of the Ant load utility. The class name itself maps to the xml tag used by load utility.This class name, 'Addpwpolicy', is used for the xml tag in the load script.
<target name="all"> <FortressAdmin> <addpwpolicy> ... </addpwpolicy> </FortressAdmin> </target>
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description Addpwpolicy()
All Ant data entities must have a default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPolicy(PwPolicy policy)
This method name, 'addPolicy', is used for derived xml tag 'policy' in the load script.List<PwPolicy>
getPolicies()
Used byFortressAntTask.addPolicies()
to retrieve list of PwPolicy as defined in input xml file.
-
-
-
Method Detail
-
addPolicy
public void addPolicy(PwPolicy policy)
This method name, 'addPolicy', is used for derived xml tag 'policy' in the load script.<addpwpolicy> <policy name="Test1" minAge="0" maxAge="2000000" inHistory="5" checkQuality="2" minLength="4" expireWarning="1000000" graceLoginLimit="3" lockout="true" lockoutDuration="0" maxFailure="3" failureCountInterval="0" mustChange="true" allowUserChange="true" safeModify="false" /> </addpwpolicy>
- Parameters:
policy
- contains reference to data element targeted for insertion..
-
getPolicies
public List<PwPolicy> getPolicies()
Used byFortressAntTask.addPolicies()
to retrieve list of PwPolicy as defined in input xml file.- Returns:
- collection containing
PwPolicy
s targeted for insertion.
-
-