|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.netscape.cms.profile.constraint.EnrollConstraint
com.netscape.cms.profile.constraint.SigningAlgConstraint
public class SigningAlgConstraint
This class implements the signing algorithm constraint. It checks if the signing algorithm in the certificate template satisfies the criteria.
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_ALGORITHMS_ALLOWED
|
static java.lang.String |
DEF_CONFIG_ALGORITHMS
|
| Fields inherited from class com.netscape.cms.profile.constraint.EnrollConstraint |
|---|
CONFIG_NAME, mConfig, mConfigNames |
| Constructor Summary | |
|---|---|
SigningAlgConstraint()
|
|
| Method Summary | |
|---|---|
IDescriptor |
getConfigDescriptor(java.util.Locale locale,
java.lang.String name)
Returns the descriptors of configuration parameter. |
java.lang.String |
getText(java.util.Locale locale)
Returns localized description of this constraint. |
void |
init(IProfile profile,
IConfigStore config)
Initializes this constraint policy. |
boolean |
isApplicable(IPolicyDefault def)
Checks if this constraint is applicable to the given default policy. |
void |
setConfig(java.lang.String name,
java.lang.String value)
Sets configuration parameter. |
void |
validate(IRequest request,
netscape.security.x509.X509CertInfo info)
Validates the request. |
| Methods inherited from class com.netscape.cms.profile.constraint.EnrollConstraint |
|---|
addConfigName, getBoolean, getConfig, getConfigBoolean, getConfigInt, getConfigNames, getConfigStore, getExtension, getInt, getLocale, getName, getValueDescriptor, isOptional, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONFIG_ALGORITHMS_ALLOWED
public static final java.lang.String DEF_CONFIG_ALGORITHMS
| Constructor Detail |
|---|
public SigningAlgConstraint()
| Method Detail |
|---|
public void init(IProfile profile,
IConfigStore config)
throws EProfileException
IPolicyConstraint
init in interface IPolicyConstraintinit in class EnrollConstraintprofile - owner of this policyconfig - configuration store for this constraint
EProfileException - failed to initialize
public void setConfig(java.lang.String name,
java.lang.String value)
throws EPropertyException
IConfigTemplate
setConfig in interface IConfigTemplatesetConfig in class EnrollConstraintname - parameter namevalue - parameter value
EPropertyException - failed to set parameter
public IDescriptor getConfigDescriptor(java.util.Locale locale,
java.lang.String name)
IConfigTemplate
getConfigDescriptor in interface IConfigTemplategetConfigDescriptor in class EnrollConstraintlocale - user localename - configuration parameter name
public void validate(IRequest request,
netscape.security.x509.X509CertInfo info)
throws ERejectException
validate in class EnrollConstraintrequest - enrollment requestinfo - certificate template
ERejectException - request is rejected due
to violation of constraintpublic java.lang.String getText(java.util.Locale locale)
IPolicyConstraint
getText in interface IPolicyConstraintgetText in class EnrollConstraintlocale - locale of the end-user
public boolean isApplicable(IPolicyDefault def)
IPolicyConstraint
isApplicable in interface IPolicyConstraintisApplicable in class EnrollConstraintdef - default policy to be checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||