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, NAME
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE
HELP_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 |
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.
|
agentApproved, createKeyIdentifier, deferred, formSHA1KeyId, formSpkiSHA1KeyId, getDescription, getInstanceName, getName, getPredicate, log, setError, setError, setError, setInstanceName, setPolicyException, setPolicyException, setPredicate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getInstanceName, getName, getPredicate, setError, setInstanceName, setPolicyException, setPredicate
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(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 referenceEBaseException
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