public class SubjectKeyIdentifierExt 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_CRITICAL
Deprecated.
|
protected static java.lang.String |
DEF_KEYID_TYPE
Deprecated.
|
protected static java.lang.String |
DEF_REQATTR_NAME
Deprecated.
|
protected static java.lang.String |
KEYID_TYPE_REQATTR
Deprecated.
|
protected static java.lang.String |
KEYID_TYPE_SHA1
Deprecated.
|
protected static java.lang.String |
KEYID_TYPE_SPKISHA1
Deprecated.
|
protected static java.lang.String |
KEYID_TYPE_TYPEFIELD
Deprecated.
|
protected IConfigStore |
mConfig
Deprecated.
|
protected boolean |
mCritical
Deprecated.
|
protected static java.util.Vector |
mDefaultParams
Deprecated.
|
protected boolean |
mEnabled
Deprecated.
|
protected java.util.Vector |
mInstanceParams
Deprecated.
|
protected java.lang.String |
mKeyIdType
Deprecated.
|
protected java.lang.String |
mReqAttrName
Deprecated.
|
protected static java.lang.String |
PROP_CRITICAL
Deprecated.
|
protected static java.lang.String |
PROP_KEYID_TYPE
Deprecated.
|
protected static java.lang.String |
PROP_REQATTR_NAME
Deprecated.
|
DESC, mFilterExp, mInstanceName, mLogger, NAME
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE
HELP_TEXT, HELP_TOKEN
Constructor and Description |
---|
SubjectKeyIdentifierExt()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PolicyResult |
apply(IRequest req)
Deprecated.
Adds Subject Key identifier Extension to a certificate.
|
PolicyResult |
applyCert(IRequest req,
netscape.security.x509.X509CertInfo certInfo)
Deprecated.
|
protected netscape.security.x509.KeyIdentifier |
formKeyIdentifier(netscape.security.x509.X509CertInfo certInfo,
IRequest req)
Deprecated.
Form the Key Identifier in the Subject Key Identifier extension.
|
protected netscape.security.x509.KeyIdentifier |
formTypeFieldKeyId(netscape.security.x509.X509CertInfo certInfo)
Deprecated.
Form key identifier from a type field value of 0100 followed by
the least significate 60 bits of the sha-1 hash of the subject
public key BIT STRING in accordance with RFC 2459.
|
java.util.Vector |
getDefaultParams()
Deprecated.
Return default parameters for a policy implementation.
|
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
Deprecated.
Gets extended plugin info for pretty Console displays.
|
java.util.Vector |
getInstanceParams()
Deprecated.
Return configured parameters for a policy rule instance.
|
void |
init(ISubsystem owner,
IConfigStore config)
Deprecated.
Initializes this policy rule.
|
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_CRITICAL
protected static final java.lang.String PROP_KEYID_TYPE
protected static final java.lang.String PROP_REQATTR_NAME
protected static final java.lang.String KEYID_TYPE_SHA1
protected static final java.lang.String KEYID_TYPE_TYPEFIELD
protected static final java.lang.String KEYID_TYPE_SPKISHA1
protected static final java.lang.String KEYID_TYPE_REQATTR
protected static final boolean DEF_CRITICAL
protected static final java.lang.String DEF_KEYID_TYPE
protected static final java.lang.String DEF_REQATTR_NAME
protected boolean mEnabled
protected IConfigStore mConfig
protected boolean mCritical
protected java.lang.String mKeyIdType
protected java.lang.String mReqAttrName
protected java.util.Vector mInstanceParams
protected static java.util.Vector mDefaultParams
public void init(ISubsystem owner, IConfigStore config) throws EBaseException
The entries may be of the form:
ca.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 netscape.security.x509.KeyIdentifier formKeyIdentifier(netscape.security.x509.X509CertInfo certInfo, IRequest req) throws EBaseException
certInfo
- Certificate Inforeq
- requestEBaseException
protected netscape.security.x509.KeyIdentifier formTypeFieldKeyId(netscape.security.x509.X509CertInfo certInfo) throws EBaseException
certInfo
- - certificate infoEBaseException
public java.util.Vector getInstanceParams()
getInstanceParams
in interface IPolicyRule
getInstanceParams
in class APolicyRule
public java.util.Vector getDefaultParams()
getDefaultParams
in interface IPolicyRule
getDefaultParams
in class APolicyRule
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
getExtendedPluginInfo
in interface IExtendedPluginInfo