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
Deprecated.
|
protected static int |
DEF_PATHLEN
Deprecated.
|
protected static boolean |
DEF_SET_DEFAULT_BITS
Deprecated.
|
protected static java.lang.String |
DEF_SET_DEFAULT_BITS_VAL
Deprecated.
|
protected boolean |
mAllowAgentOverride
Deprecated.
|
protected boolean |
mAllowEEOverride
Deprecated.
|
protected int |
mCAPathLen
Deprecated.
|
protected IConfigStore |
mConfig
Deprecated.
|
protected boolean |
mCritical
Deprecated.
|
protected boolean |
mSetDefaultBits
Deprecated.
|
protected static java.lang.String |
PROP_AGENT_OVERR
Deprecated.
|
protected static java.lang.String |
PROP_CRITICAL
Deprecated.
|
protected static java.lang.String |
PROP_EE_OVERR
Deprecated.
|
protected static java.lang.String |
PROP_SET_DEFAULT_BITS
Deprecated.
|
DESC, mFilterExp, mInstanceName, mLogger, NAMEPROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATEHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
NSCertTypeExt()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
PolicyResult |
apply(IRequest req)
Deprecated.
Adds the ns cert type if not set already.
|
PolicyResult |
applyCert(IRequest req,
netscape.security.x509.X509CertInfo certInfo)
Deprecated.
|
protected boolean |
extensionIsGood(netscape.security.extensions.NSCertTypeExtension nsCertTypeExt,
IRequest req)
Deprecated.
check if ns cert type extension is set correctly,
correct bits if not.
|
protected boolean[] |
getBitsFromRequest(IRequest req,
boolean setDefault)
Deprecated.
Gets ns cert type bits from request.
|
protected boolean[] |
getCertTypeBits(IRequest req)
Deprecated.
get cert type bits according to cert type.
|
java.util.Vector<java.lang.String> |
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<java.lang.String> |
getInstanceParams()
Deprecated.
Return configured parameters for a policy rule instance.
|
protected boolean[] |
getNSCertTypeBits(IRequest req)
Deprecated.
get ns cert type bits from actual sets in the request
|
void |
init(ISubsystem owner,
IConfigStore config)
Deprecated.
Initializes this policy rule.
|
void |
mergeBits(netscape.security.extensions.NSCertTypeExtension nsCertTypeExt,
boolean[] bits)
Deprecated.
merge bits with those set from form.
|
agentApproved, createKeyIdentifier, deferred, formSHA1KeyId, formSpkiSHA1KeyId, getDescription, getInstanceName, getName, getPredicate, log, setError, setError, setError, setInstanceName, setPolicyException, setPolicyException, setPredicateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getInstanceName, getName, getPredicate, setError, setInstanceName, setPolicyException, setPredicateprotected 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(ISubsystem 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 IPolicyRuleapply in interface IPolicyapply in class APolicyRulereq - The request on which to apply policy.public PolicyResult applyCert(IRequest req, netscape.security.x509.X509CertInfo certInfo)
protected boolean extensionIsGood(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(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