Class ManualAuthentication
- java.lang.Object
-
- org.dogtagpki.legacy.server.policy.APolicyRule
-
- org.dogtagpki.legacy.server.policy.constraints.ManualAuthentication
-
- All Implemented Interfaces:
IPolicy,IEnrollmentPolicy,IPolicyRule
public class ManualAuthentication extends APolicyRule implements IEnrollmentPolicy
ManualAuthentication is an enrollment policy that queues all requests for issuing agent's approval if no authentication is present. The policy rejects a request if any of the auth tokens indicates authentication failure.NOTE: The Policy Framework has been replaced by the Profile Framework.
- Version:
- $Revision$, $Date$
-
-
Field Summary
-
Fields inherited from class org.dogtagpki.legacy.server.policy.APolicyRule
DESC, logger, mFilterExp, mInstanceName, NAME
-
Fields inherited from interface org.dogtagpki.legacy.policy.IPolicyRule
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE
-
-
Constructor Summary
Constructors Constructor Description ManualAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyResultapply(IRequest req)Applies the policy on the given Request.java.util.Vector<java.lang.String>getDefaultParams()Return default parameters for a policy implementation.java.util.Vector<java.lang.String>getInstanceParams()Return configured parameters for a policy rule instance.voidinit(IPolicyProcessor owner, IConfigStore config)Initializes this policy rule.-
Methods inherited from class org.dogtagpki.legacy.server.policy.APolicyRule
agentApproved, createKeyIdentifier, deferred, formSHA1KeyId, formSpkiSHA1KeyId, getDescription, getInstanceName, getName, getPredicate, setError, setError, setError, setInstanceName, setPolicyException, setPolicyException, setPredicate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dogtagpki.legacy.policy.IPolicyRule
getDescription, getInstanceName, getName, getPredicate, setError, setInstanceName, setPolicyException, setPredicate
-
-
-
-
Method Detail
-
init
public void init(IPolicyProcessor owner, IConfigStore config) throws EPolicyException
Initializes this policy rule.The entries may be of the form: ra.Policy.rule.
.implName=ManualAuthentication ra.Policy.rule. .enable=true ra.Policy.rule. .predicate= ou == engineering AND o == netscape.com - Specified by:
initin interfaceIPolicyRule- Specified by:
initin classAPolicyRule- Parameters:
config- The config store reference- Throws:
EPolicyException
-
apply
public PolicyResult apply(IRequest req)
Applies the policy on the given Request.- Specified by:
applyin interfaceIPolicy- Specified by:
applyin interfaceIPolicyRule- Specified by:
applyin classAPolicyRule- Parameters:
req- The request on which to apply policy.- Returns:
- The policy result object.
-
getInstanceParams
public java.util.Vector<java.lang.String> getInstanceParams()
Return configured parameters for a policy rule instance.- Specified by:
getInstanceParamsin interfaceIPolicyRule- Specified by:
getInstanceParamsin classAPolicyRule- Returns:
- nvPairs A Vector of name/value pairs.
-
getDefaultParams
public java.util.Vector<java.lang.String> getDefaultParams()
Return default parameters for a policy implementation.- Specified by:
getDefaultParamsin interfaceIPolicyRule- Specified by:
getDefaultParamsin classAPolicyRule- Returns:
- nvPairs A Vector of name/value pairs.
-
-