|
||||||||||
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.
Field Summary | |
---|---|
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
|
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
|
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()
|
Method Summary | |
---|---|
PolicyResult |
apply(IRequest req)
Adds the ns cert type if not set already. |
PolicyResult |
applyCert(IRequest req,
netscape.security.x509.X509CertInfo certInfo)
|
protected boolean |
extensionIsGood(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 |
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 |
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(ISubsystem owner,
IConfigStore config)
Initializes this policy rule. |
void |
mergeBits(netscape.security.extensions.NSCertTypeExtension nsCertTypeExt,
boolean[] bits)
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 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, 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 IPolicyRule
getInstanceParams
in class APolicyRule
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
public java.util.Vector getDefaultParams()
getDefaultParams
in interface IPolicyRule
getDefaultParams
in class APolicyRule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |