|
||||||||||
| 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.NSCertTypeExt
public class NSCertTypeExt
NS Cert Type policy. Adds the ns cert type extension depending on cert type requested.
NOTE: The Policy Framework has been replaced by the Profile Framework.
| Field Summary | |
|---|---|
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. |
| 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 | |
|---|---|
NSCertTypeExt()
Deprecated. |
|
| Method Summary | |
|---|---|
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 |
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. |
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. |
| 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_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
| Constructor Detail |
|---|
public NSCertTypeExt()
| Method Detail |
|---|
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 APolicyRule
config - The config store reference
EBaseException
public 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.IOException
java.security.cert.CertificateException
protected 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 getInstanceParams()
getInstanceParams in interface IPolicyRulegetInstanceParams in class APolicyRulepublic java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo in interface IExtendedPluginInfopublic java.util.Vector getDefaultParams()
getDefaultParams in interface IPolicyRulegetDefaultParams in class APolicyRule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||