|
||||||||||
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.constraints.UniqueSubjectNameConstraints
public class UniqueSubjectNameConstraints
Checks the uniqueness of the subject name. This policy can only be used (installed) in Certificate Authority subsystem. This policy can perform pre-agent-approval checking or post-agent-approval checking based on configuration setting. In some situations, user may want to have 2 certificates with the same subject name. For example, one key for encryption, and one for signing. This policy does not deal with this case directly. But it can be easily extended to do that.
NOTE: The Policy Framework has been replaced by the Profile Framework.
Field Summary | |
---|---|
ICertificateAuthority |
mCA
Deprecated. |
boolean |
mKeyUsageExtensionChecking
Deprecated. |
boolean |
mPreAgentApprovalChecking
Deprecated. |
protected static java.lang.String |
PROP_KEY_USAGE_EXTENSION_CHECKING
Deprecated. |
protected static java.lang.String |
PROP_PRE_AGENT_APPROVAL_CHECKING
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_ENABLE, PROP_IMPLNAME, PROP_PREDICATE |
Fields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo |
---|
HELP_TEXT, HELP_TOKEN |
Constructor Summary | |
---|---|
UniqueSubjectNameConstraints()
Deprecated. |
Method Summary | |
---|---|
PolicyResult |
apply(IRequest req)
Deprecated. Applies the policy on the given Request. |
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. |
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 java.lang.String PROP_PRE_AGENT_APPROVAL_CHECKING
protected static final java.lang.String PROP_KEY_USAGE_EXTENSION_CHECKING
public ICertificateAuthority mCA
public boolean mPreAgentApprovalChecking
public boolean mKeyUsageExtensionChecking
Constructor Detail |
---|
public UniqueSubjectNameConstraints()
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 probably are 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.
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 |