public class NSCCommentExt extends APolicyRule implements IEnrollmentPolicy, IExtendedPluginInfo
NOTE: The Policy Framework has been replaced by the Profile Framework.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
certApplied |
protected static java.lang.String |
FILE |
protected java.lang.String |
mCommentFile |
protected boolean |
mCritical |
protected java.lang.String |
mInputType |
protected java.lang.String |
mUserNoticeDisplayText |
protected static java.lang.String |
PROP_COMMENT_FILE |
protected static java.lang.String |
PROP_CRITICAL |
protected static java.lang.String |
PROP_INPUT_TYPE |
protected static java.lang.String |
PROP_USER_NOTICE_DISPLAY_TEXT |
protected java.lang.String |
tempCommentFile |
protected static java.lang.String |
TEXT |
DESC, logger, mFilterExp, mInstanceName, NAMEPROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATEHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
NSCCommentExt()
Adds the Netscape comment in the end-entity certificates or
CA certificates.
|
| Modifier and Type | Method and Description |
|---|---|
PolicyResult |
apply(IRequest req)
Applies the policy on the given Request.
|
PolicyResult |
applyCert(IRequest req,
org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo) |
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.
|
void |
init(IPolicyProcessor owner,
IConfigStore config)
Initializes this policy rule.
|
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, setPredicateprotected static final java.lang.String PROP_USER_NOTICE_DISPLAY_TEXT
protected static final java.lang.String PROP_COMMENT_FILE
protected static final java.lang.String PROP_CRITICAL
protected static final java.lang.String PROP_INPUT_TYPE
protected static final java.lang.String TEXT
protected static final java.lang.String FILE
protected java.lang.String mUserNoticeDisplayText
protected java.lang.String mCommentFile
protected java.lang.String mInputType
protected boolean mCritical
protected java.lang.String tempCommentFile
protected boolean certApplied
public NSCCommentExt()
public void init(IPolicyProcessor owner, IConfigStore config) throws EBaseException
The entries may be of the form:
ca.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)
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfogetExtendedPluginInfo in interface IExtendedPluginInfopublic java.util.Vector<java.lang.String> getInstanceParams()
getInstanceParams in interface IPolicyRulegetInstanceParams in class APolicyRulepublic java.util.Vector<java.lang.String> getDefaultParams()
getDefaultParams in interface IPolicyRulegetDefaultParams in class APolicyRule