public class BasicConstraintsExt extends APolicyRule implements IEnrollmentPolicy, IExtendedPluginInfo
NOTE: The Policy Framework has been replaced by the Profile Framework.
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ARG_PATHLEN |
static boolean |
DEFAULT_CRITICALITY |
static org.slf4j.Logger |
logger |
protected int |
mCAPathLen |
protected boolean |
mCritical |
protected int |
mDefaultMaxPathLen |
protected boolean |
mIsCA |
protected int |
mMaxPathLen |
protected java.lang.String |
mOrigMaxPathLen |
protected boolean |
mRemoveExt |
protected static java.lang.String |
PROP_IS_CA |
protected static java.lang.String |
PROP_IS_CRITICAL |
protected static java.lang.String |
PROP_MAXPATHLEN |
DESC, mFilterExp, mInstanceName, NAMEPROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATEHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
BasicConstraintsExt()
Adds the basic constraints extension as a critical extension in
CA certificates i.e.
|
| Modifier and Type | Method and Description |
|---|---|
PolicyResult |
apply(IRequest req)
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,
org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo) |
java.util.Vector<java.lang.String> |
getDefaultParams()
Return default parameters for a policy implementation.
|
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
This method returns an array of strings.
|
java.util.Vector<java.lang.String> |
getInstanceParams()
Return configured parameters for a policy rule instance.
|
void |
init(IPolicyProcessor owner,
IConfigStore config)
Initializes this policy rule.
|
agentApproved, createKeyIdentifier, deferred, formSHA1KeyId, formSpkiSHA1KeyId, getDescription, getInstanceName, getName, getPredicate, setError, setError, setError, setInstanceName, setPolicyException, setPolicyException, setPredicateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getInstanceName, getName, getPredicate, setError, setInstanceName, setPolicyException, setPredicatepublic static org.slf4j.Logger logger
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
public BasicConstraintsExt()
public void init(IPolicyProcessor owner, IConfigStore config) throws EBaseException
The entries may be of the form:
ca.Policy.rule.
init in interface IPolicyRuleinit in class APolicyRuleconfig - The config store referenceEBaseExceptionpublic PolicyResult apply(IRequest req)
apply in interface IPolicyapply in interface IPolicyRuleapply in class APolicyRulereq - The request on which to apply policy.public PolicyResult applyCert(IRequest req, boolean isCA, org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo)
public java.util.Vector<java.lang.String> getInstanceParams()
getInstanceParams in interface IPolicyRulegetInstanceParams in class APolicyRulepublic java.util.Vector<java.lang.String> getDefaultParams()
getDefaultParams in interface IPolicyRulegetDefaultParams in class APolicyRulepublic java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfogetExtendedPluginInfo in interface IExtendedPluginInfo