public class AuthorityKeyIdentifierExt extends APolicyRule implements IEnrollmentPolicy, IExtendedPluginInfo
NOTE: The Policy Framework has been replaced by the Profile Framework.
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ALT_KEYID_TYPE_EMPTY |
protected static java.lang.String |
ALT_KEYID_TYPE_NONE |
protected static java.lang.String |
ALT_KEYID_TYPE_SPKISHA1 |
protected static java.lang.String |
DEF_ALT_KEYID_TYPE |
protected static boolean |
DEF_CRITICAL |
static org.slf4j.Logger |
logger |
protected java.lang.String |
mAltKeyIdType |
protected IConfigStore |
mConfig |
protected boolean |
mCritical |
protected static java.util.Vector<java.lang.String> |
mDefaultParams |
protected boolean |
mEnabled |
protected java.util.Vector<java.lang.String> |
mInstanceParams |
protected org.mozilla.jss.netscape.security.x509.AuthorityKeyIdentifierExtension |
mTheExtension |
protected static java.lang.String |
PROP_ALT_KEYID_TYPE |
protected static java.lang.String |
PROP_CRITICAL |
DESC, mFilterExp, mInstanceName, NAMEPROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATEHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
AuthorityKeyIdentifierExt() |
| Modifier and Type | Method and Description |
|---|---|
PolicyResult |
apply(IRequest req)
Adds Authority Key Identifier Extension to a certificate.
|
PolicyResult |
applyCert(IRequest req,
org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo) |
protected org.mozilla.jss.netscape.security.x509.KeyIdentifier |
formKeyIdentifier(org.mozilla.jss.netscape.security.x509.X509CertImpl caCertImpl)
Form the Key Identifier in the Authority Key Identifier extension.
|
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.
|
protected org.mozilla.jss.netscape.security.x509.KeyIdentifier |
getKeyIdentifier(org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo)
Get the Key Identifier in a subject key identifier extension from a
CertInfo.
|
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, setPredicatepublic static org.slf4j.Logger logger
protected static final java.lang.String PROP_CRITICAL
protected static final java.lang.String PROP_ALT_KEYID_TYPE
protected static final java.lang.String ALT_KEYID_TYPE_SPKISHA1
protected static final java.lang.String ALT_KEYID_TYPE_NONE
protected static final java.lang.String ALT_KEYID_TYPE_EMPTY
protected static final boolean DEF_CRITICAL
protected static final java.lang.String DEF_ALT_KEYID_TYPE
protected boolean mEnabled
protected IConfigStore mConfig
protected boolean mCritical
protected java.lang.String mAltKeyIdType
protected org.mozilla.jss.netscape.security.x509.AuthorityKeyIdentifierExtension mTheExtension
protected java.util.Vector<java.lang.String> mInstanceParams
protected static java.util.Vector<java.lang.String> mDefaultParams
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)
protected org.mozilla.jss.netscape.security.x509.KeyIdentifier formKeyIdentifier(org.mozilla.jss.netscape.security.x509.X509CertImpl caCertImpl)
throws EBaseException
caCertImpl - Certificate InfoEBaseException - on errorprotected org.mozilla.jss.netscape.security.x509.KeyIdentifier getKeyIdentifier(org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo)
throws EBaseException
certInfo - the CertInfo structure.EBaseExceptionpublic 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 APolicyRulepublic java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfogetExtendedPluginInfo in interface IExtendedPluginInfo