|
||||||||||
| 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.KeyConstraint
public class KeyConstraint
This constraint is to check the key type and key length.
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_KEY_PARAMETERS
|
static java.lang.String |
CONFIG_KEY_TYPE
|
| Fields inherited from class com.netscape.cms.profile.constraint.EnrollConstraint |
|---|
CONFIG_NAME, mConfig, mConfigNames |
| Constructor Summary | |
|---|---|
KeyConstraint()
|
|
| Method Summary | |
|---|---|
IDescriptor |
getConfigDescriptor(java.util.Locale locale,
java.lang.String name)
Returns the descriptors of configuration parameter. |
int |
getDSAKeyLen(netscape.security.x509.X509Key key)
|
int |
getRSAKeyLen(netscape.security.x509.X509Key key)
|
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_KEY_TYPE
public static final java.lang.String CONFIG_KEY_PARAMETERS
| Constructor Detail |
|---|
public KeyConstraint()
| 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 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 constraint
public int getRSAKeyLen(netscape.security.x509.X509Key key)
throws java.lang.Exception
java.lang.Exception
public int getDSAKeyLen(netscape.security.x509.X509Key key)
throws java.lang.Exception
java.lang.Exceptionpublic 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
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||