|
||||||||||
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.GenericASN1Ext
public class GenericASN1Ext
Private Integer extension policy. If this policy is enabled, it adds an Private Integer extension to the certificate. The following listed sample configuration parameters: ca.Policy.impl.privateInteger.class=com.netscape.certsrv.policy.genericASNExt ca.Policy.rule.genericASNExt.enable=true ca.Policy.rule.genericASNExt.name=myIntegerExtension ca.Policy.rule.genericASNExt.pattern={{{12}34}5} ca.Policy.rule.genericASNExt.oid=280.230.123.1234.1 ca.Policy.rule.genericASNExt.critical=false ca.Policy.rule.genericASNExt.attribute1.type=integer ca.Policy.rule.genericASNExt.attribute1.source=value ca.Policy.rule.genericASNExt.attribute1.value=9999 ca.Policy.rule.genericASNExt.attribute2.type=ia5string ca.Policy.rule.genericASNExt.attribute2.source=value ca.Policy.rule.genericASNExt.attribute2.value=hello ca.Policy.rule.genericASNExt.attribute3.type=octetstring ca.Policy.rule.genericASNExt.attribute3.source=value ca.Policy.rule.genericASNExt.attribute3.value=hellohello ca.Policy.rule.genericASNExt.attribute4.type=octetstring ca.Policy.rule.genericASNExt.attribute4.source=file ca.Policy.rule.genericASNExt.attribute4.value=c:/tmp/test.txt ca.Policy.rule.genericASNExt.attribute5.type= ca.Policy.rule.genericASNExt.attribute5.source= ca.Policy.rule.genericASNExt.attribute5.value= ca.Policy.rule.genericASNExt.implName=genericASNExt ca.Policy.rule.genericASNExt.predicate=
NOTE: The Policy Framework has been replaced by the Profile Framework.
Field Summary | |
---|---|
protected static int |
MAX_ATTR
Deprecated. |
IConfigStore |
mConfig
Deprecated. |
protected static java.lang.String |
PROP_ATTRIBUTE
Deprecated. |
protected static java.lang.String |
PROP_CRITICAL
Deprecated. |
protected static java.lang.String |
PROP_ENABLE
Deprecated. |
protected static java.lang.String |
PROP_NAME
Deprecated. |
protected static java.lang.String |
PROP_OID
Deprecated. |
protected static java.lang.String |
PROP_PATTERN
Deprecated. |
protected static java.lang.String |
PROP_PREDICATE
Deprecated. |
protected static java.lang.String |
PROP_SOURCE
Deprecated. |
protected static java.lang.String |
PROP_TYPE
Deprecated. |
protected static java.lang.String |
PROP_VALUE
Deprecated. |
Fields inherited from class com.netscape.cms.policy.APolicyRule |
---|
DESC, mFilterExp, mInstanceName, mLogger, NAME |
Fields inherited from interface com.netscape.certsrv.policy.IPolicyRule |
---|
PROP_IMPLNAME |
Fields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo |
---|
HELP_TEXT, HELP_TOKEN |
Constructor Summary | |
---|---|
GenericASN1Ext()
Deprecated. |
Method Summary | |
---|---|
PolicyResult |
apply(IRequest req)
Deprecated. If this policy is enabled, add the private Integer information extension to the certificate. |
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. |
void |
init(ISubsystem owner,
IConfigStore config)
Deprecated. Initializes this policy rule. |
protected netscape.security.extensions.GenericASN1Extension |
mkExtension()
Deprecated. Construct GenericASN1Extension with value from CMS.cfg |
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 int MAX_ATTR
protected static final java.lang.String PROP_CRITICAL
protected static final java.lang.String PROP_NAME
protected static final java.lang.String PROP_OID
protected static final java.lang.String PROP_PATTERN
protected static final java.lang.String PROP_ATTRIBUTE
protected static final java.lang.String PROP_TYPE
protected static final java.lang.String PROP_SOURCE
protected static final java.lang.String PROP_VALUE
protected static final java.lang.String PROP_PREDICATE
protected static final java.lang.String PROP_ENABLE
public IConfigStore mConfig
Constructor Detail |
---|
public GenericASN1Ext()
Method Detail |
---|
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
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 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.
protected netscape.security.extensions.GenericASN1Extension mkExtension() throws java.io.IOException, EBaseException, java.text.ParseException
java.io.IOException
EBaseException
java.text.ParseException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |