com.netscape.cms.policy.constraints
Class AgentPolicy

java.lang.Object
  extended by com.netscape.cms.policy.APolicyRule
      extended by com.netscape.cms.policy.constraints.AgentPolicy
All Implemented Interfaces:
IEnrollmentPolicy, IPolicyRule, IPolicy

Deprecated.

public class AgentPolicy
extends APolicyRule
implements IEnrollmentPolicy

AgentPolicy is an enrollment policy wraps another policy module. Requests are sent first to the contained module, but if the policy indicates that the request should be deferred, a check for agent approvals is done. If any are found, the request is approved.

 NOTE:  The Policy Framework has been replaced by the Profile Framework.
 

Version:
$Revision: 1226 $, $Date: 2010-08-19 14:16:41 -0700 (Thu, 19 Aug 2010) $

Field Summary
 
Fields inherited from class com.netscape.cms.policy.APolicyRule
DESC, mFilterExp, mInstanceName, mLogger, NAME
 
Fields inherited from interface com.netscape.certsrv.policy.IPolicyRule
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE
 
Constructor Summary
AgentPolicy()
          Deprecated.  
 
Method Summary
 PolicyResult apply(IRequest req)
          Deprecated. Applies the policy on the given Request.
 java.util.Vector getDefaultParams()
          Deprecated. Return default parameters for a policy implementation.
 java.util.Vector getInstanceParams()
          Deprecated. Return configured parameters for a policy rule instance.
 void init(ISubsystem owner, IConfigStore config)
          Deprecated. Initializes this policy rule.
 
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
 
Methods inherited from interface com.netscape.certsrv.policy.IPolicyRule
getDescription, getInstanceName, getName, getPredicate, setError, setInstanceName, setPolicyException, setPredicate
 

Constructor Detail

AgentPolicy

public AgentPolicy()
Deprecated. 
Method Detail

init

public void init(ISubsystem owner,
                 IConfigStore config)
          throws EPolicyException
Deprecated. 
Initializes this policy rule.

The entries may be of the form: ra.Policy.rule..implName=AgentPolicy ra.Policy.rule..enable=true ra.Policy.rule..predicate= ou == engineering AND o == netscape.com ra.Policy.rule..class=xxxx ra.Policy.rule..params.*

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)
Deprecated. 
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()
Deprecated. 
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()
Deprecated. 
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.