com.netscape.cms.policy.constraints
Class ManualAuthentication
java.lang.Object
com.netscape.cms.policy.APolicyRule
com.netscape.cms.policy.constraints.ManualAuthentication
- All Implemented Interfaces:
- IEnrollmentPolicy, IPolicyRule, IPolicy
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.
- Version:
- $Revision: 14561 $, $Date: 2007-05-01 10:28:56 -0700 (Tue, 01 May 2007) $
Methods inherited from class com.netscape.cms.policy.APolicyRule |
agentApproved, createKeyIdentifier, deferred, formSHA1KeyId, formSpkiSHA1KeyId, getDescription, getInstanceName, getName, getPredicate, log, 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 |
ManualAuthentication
public ManualAuthentication()
init
public void init(ISubsystem 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:
init
in interface IPolicyRule
- Specified by:
init
in class APolicyRule
- Parameters:
config
- The config store reference
- Throws:
EPolicyException
apply
public PolicyResult apply(IRequest req)
- Applies the policy on the given Request.
- Specified by:
apply
in interface IPolicyRule
- Specified by:
apply
in interface IPolicy
- Specified by:
apply
in class APolicyRule
- Parameters:
req
- The request on which to apply policy.
- Returns:
- The policy result object.
getInstanceParams
public java.util.Vector getInstanceParams()
- Return configured parameters for a policy rule instance.
- Specified by:
getInstanceParams
in interface IPolicyRule
- Specified by:
getInstanceParams
in class APolicyRule
- Returns:
- nvPairs A Vector of name/value pairs.
getDefaultParams
public java.util.Vector getDefaultParams()
- Return default parameters for a policy implementation.
- Specified by:
getDefaultParams
in interface IPolicyRule
- Specified by:
getDefaultParams
in class APolicyRule
- Returns:
- nvPairs A Vector of name/value pairs.