Class PwPolicyMgrFactory
- java.lang.Object
-
- org.apache.directory.fortress.core.PwPolicyMgrFactory
-
public final class PwPolicyMgrFactory extends Object
Creates an instance of the PwPolicyMgr object.The default implementation class is specified as
PwPolicyMgrImpl
but can be overridden by adding theGlobalIds.PSWD_POLICY_IMPLEMENTATION
config property.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description PwPolicyMgrFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PwPolicyMgr
createInstance()
Create and return a reference toPwPolicyMgr
object using HOME context.static PwPolicyMgr
createInstance(String contextId)
Create and return a reference toPwPolicyMgr
object.static PwPolicyMgr
createInstance(String contextId, Session adminSess)
Create and return a reference toPwPolicyMgr
object.static PwPolicyMgr
createInstance(Session adminSess)
Create and return a reference toPwPolicyMgr
object using HOME context.
-
-
-
Method Detail
-
createInstance
public static PwPolicyMgr createInstance() throws SecurityException
Create and return a reference toPwPolicyMgr
object using HOME context.- Returns:
- instance of
PwPolicyMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static PwPolicyMgr createInstance(String contextId) throws SecurityException
Create and return a reference toPwPolicyMgr
object.- Parameters:
contextId
- maps to sub-tree in DIT, e.g. ou=contextId, dc=example, dc=com.- Returns:
- instance of
PwPolicyMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static PwPolicyMgr createInstance(Session adminSess) throws SecurityException
Create and return a reference toPwPolicyMgr
object using HOME context.- Parameters:
adminSess
- contains a valid Fortress A/RBAC Session object.- Returns:
- instance of
PwPolicyMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static PwPolicyMgr createInstance(String contextId, Session adminSess) throws SecurityException
Create and return a reference toPwPolicyMgr
object.- Parameters:
contextId
- maps to sub-tree in DIT, e.g. ou=contextId, dc=example, dc=com.adminSess
- contains a valid Fortress A/RBAC Session object.- Returns:
- instance of
PwPolicyMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
-