Class ManualAuthentication
java.lang.Object
com.netscape.certsrv.request.Policy
org.dogtagpki.legacy.server.policy.PolicyRule
org.dogtagpki.legacy.policy.EnrollmentPolicy
org.dogtagpki.legacy.server.policy.constraints.ManualAuthentication
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.PolicyRule
DESC, logger, mFilterExp, mInstanceName, NAME, PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies the policy on the given Request.Return default parameters for a policy implementation.Return configured parameters for a policy rule instance.void
init
(PolicyProcessor owner, ConfigStore config) Initializes this policy rule.Methods inherited from class org.dogtagpki.legacy.server.policy.PolicyRule
agentApproved, createKeyIdentifier, deferred, formSHA1KeyId, formSpkiSHA1KeyId, getDescription, getInstanceName, getName, getPredicate, setError, setError, setError, setInstanceName, setPolicyException, setPolicyException, setPredicate
-
Constructor Details
-
ManualAuthentication
public ManualAuthentication()
-
-
Method Details
-
init
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:
init
in classPolicyRule
- Parameters:
config
- The config store reference- Throws:
EPolicyException
-
apply
Applies the policy on the given Request.- Specified by:
apply
in classPolicyRule
- Parameters:
req
- The request on which to apply policy.- Returns:
- The policy result object.
-
getInstanceParams
Return configured parameters for a policy rule instance.- Specified by:
getInstanceParams
in classPolicyRule
- Returns:
- nvPairs A Vector of name/value pairs.
-
getDefaultParams
Return default parameters for a policy implementation.- Specified by:
getDefaultParams
in classPolicyRule
- Returns:
- nvPairs A Vector of name/value pairs.
-