public class NSCertTypeExt extends APolicyRule implements IEnrollmentPolicy, IExtendedPluginInfo
NOTE: The Policy Framework has been replaced by the Profile Framework.
| Modifier and Type | Field and Description |
|---|---|
protected static boolean[] |
DEF_BITS |
protected static int |
DEF_PATHLEN |
protected static boolean |
DEF_SET_DEFAULT_BITS |
protected static java.lang.String |
DEF_SET_DEFAULT_BITS_VAL |
static org.slf4j.Logger |
logger |
protected boolean |
mAllowAgentOverride |
protected boolean |
mAllowEEOverride |
protected int |
mCAPathLen |
protected IConfigStore |
mConfig |
protected boolean |
mCritical |
protected boolean |
mSetDefaultBits |
protected static java.lang.String |
PROP_AGENT_OVERR |
protected static java.lang.String |
PROP_CRITICAL |
protected static java.lang.String |
PROP_EE_OVERR |
protected static java.lang.String |
PROP_SET_DEFAULT_BITS |
DESC, mFilterExp, mInstanceName, NAMEPROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATEHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
NSCertTypeExt() |
| Modifier and Type | Method and Description |
|---|---|
PolicyResult |
apply(IRequest req)
Adds the ns cert type if not set already.
|
PolicyResult |
applyCert(IRequest req,
org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo) |
protected boolean |
extensionIsGood(org.mozilla.jss.netscape.security.extensions.NSCertTypeExtension nsCertTypeExt,
IRequest req)
check if ns cert type extension is set correctly,
correct bits if not.
|
protected boolean[] |
getBitsFromRequest(IRequest req,
boolean setDefault)
Gets ns cert type bits from request.
|
protected boolean[] |
getCertTypeBits(IRequest req)
get cert type bits according to cert type.
|
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.
|
protected boolean[] |
getNSCertTypeBits(IRequest req)
get ns cert type bits from actual sets in the request
|
void |
init(IPolicyProcessor owner,
IConfigStore config)
Initializes this policy rule.
|
void |
mergeBits(org.mozilla.jss.netscape.security.extensions.NSCertTypeExtension nsCertTypeExt,
boolean[] bits)
merge bits with those set from form.
|
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_SET_DEFAULT_BITS
protected static final boolean DEF_SET_DEFAULT_BITS
protected static final java.lang.String DEF_SET_DEFAULT_BITS_VAL
protected static final int DEF_PATHLEN
protected static final boolean[] DEF_BITS
protected static final java.lang.String PROP_AGENT_OVERR
protected static final java.lang.String PROP_EE_OVERR
protected static final java.lang.String PROP_CRITICAL
protected boolean mAllowAgentOverride
protected boolean mAllowEEOverride
protected boolean mCritical
protected int mCAPathLen
protected IConfigStore mConfig
protected boolean mSetDefaultBits
public void init(IPolicyProcessor owner, IConfigStore config) throws EBaseException
The entries may be of the form:
ra.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, org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo)
protected boolean extensionIsGood(org.mozilla.jss.netscape.security.extensions.NSCertTypeExtension nsCertTypeExt,
IRequest req)
throws java.io.IOException,
java.security.cert.CertificateException
java.io.IOExceptionjava.security.cert.CertificateExceptionprotected boolean[] getBitsFromRequest(IRequest req, boolean setDefault)
protected boolean[] getNSCertTypeBits(IRequest req)
protected boolean[] getCertTypeBits(IRequest req)
public void mergeBits(org.mozilla.jss.netscape.security.extensions.NSCertTypeExtension nsCertTypeExt,
boolean[] bits)
public java.util.Vector<java.lang.String> getInstanceParams()
getInstanceParams in interface IPolicyRulegetInstanceParams in class APolicyRulepublic java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfogetExtendedPluginInfo in interface IExtendedPluginInfopublic java.util.Vector<java.lang.String> getDefaultParams()
getDefaultParams in interface IPolicyRulegetDefaultParams in class APolicyRule