|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.cms.policy.APolicyRule
com.netscape.cms.policy.extensions.BasicConstraintsExt
public class BasicConstraintsExt
Basic Constraints policy. Adds the Basic constraints extension.
NOTE: The Policy Framework has been replaced by the Profile Framework.
Field Summary | |
---|---|
protected static java.lang.String |
ARG_PATHLEN
Deprecated. |
static boolean |
DEFAULT_CRITICALITY
Deprecated. |
protected int |
mCAPathLen
Deprecated. |
protected boolean |
mCritical
Deprecated. |
protected int |
mDefaultMaxPathLen
Deprecated. |
protected boolean |
mIsCA
Deprecated. |
protected int |
mMaxPathLen
Deprecated. |
protected java.lang.String |
mOrigMaxPathLen
Deprecated. |
protected boolean |
mRemoveExt
Deprecated. |
protected static java.lang.String |
PROP_IS_CA
Deprecated. |
protected static java.lang.String |
PROP_IS_CRITICAL
Deprecated. |
protected static java.lang.String |
PROP_MAXPATHLEN
Deprecated. |
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 |
Fields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo |
---|
HELP_TEXT, HELP_TOKEN |
Constructor Summary | |
---|---|
BasicConstraintsExt()
Deprecated. Adds the basic constraints extension as a critical extension in CA certificates i.e. |
Method Summary | |
---|---|
PolicyResult |
apply(IRequest req)
Deprecated. Checks if the basic contraints extension in certInfo is valid and add the basic constraints extension for CA certs if none exists. |
PolicyResult |
applyCert(IRequest req,
boolean isCA,
netscape.security.x509.X509CertInfo certInfo)
Deprecated. |
java.util.Vector |
getDefaultParams()
Deprecated. Return default parameters for a policy implementation. |
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
Deprecated. This method returns an array of strings. |
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 |
Field Detail |
---|
protected static final java.lang.String PROP_MAXPATHLEN
protected static final java.lang.String PROP_IS_CA
protected static final java.lang.String PROP_IS_CRITICAL
protected static final java.lang.String ARG_PATHLEN
protected int mMaxPathLen
protected java.lang.String mOrigMaxPathLen
protected boolean mCritical
protected int mDefaultMaxPathLen
protected int mCAPathLen
protected boolean mRemoveExt
protected boolean mIsCA
public static final boolean DEFAULT_CRITICALITY
Constructor Detail |
---|
public BasicConstraintsExt()
Method Detail |
---|
public void init(ISubsystem owner, IConfigStore config) throws EBaseException
The entries may be of the form:
ca.Policy.rule.
init
in interface IPolicyRule
init
in class APolicyRule
config
- The config store reference
EBaseException
public PolicyResult apply(IRequest req)
apply
in interface IPolicyRule
apply
in interface IPolicy
apply
in class APolicyRule
req
- The request on which to apply policy.
public PolicyResult applyCert(IRequest req, boolean isCA, netscape.security.x509.X509CertInfo certInfo)
public java.util.Vector getInstanceParams()
getInstanceParams
in interface IPolicyRule
getInstanceParams
in class APolicyRule
public java.util.Vector getDefaultParams()
getDefaultParams
in interface IPolicyRule
getDefaultParams
in class APolicyRule
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |