public class UniqueKeyConstraint extends EnrollConstraint
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_ALLOW_SAME_KEY_RENEWAL |
static org.slf4j.Logger |
logger |
ICertificateAuthority |
mCA |
CONFIG_NAME, CONFIG_PARAMS, mConfig, mConfigNames| Constructor and Description |
|---|
UniqueKeyConstraint() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escapeBinaryData(byte[] data) |
IDescriptor |
getConfigDescriptor(java.util.Locale locale,
java.lang.String name)
Returns the descriptors of configuration parameter.
|
java.lang.String |
getDefaultConfig(java.lang.String name) |
java.lang.String |
getText(java.util.Locale locale)
make a CRL entry from a serial number and revocation reason.
|
void |
init(IConfigStore config)
Initializes this constraint policy.
|
boolean |
isApplicable(PolicyDefault def)
Checks if this constraint is applicable to the
given default policy.
|
void |
validate(IRequest request,
org.mozilla.jss.netscape.security.x509.X509CertInfo info)
Validates the request.
|
addConfigName, getBoolean, getConfig, getConfig, getConfigBoolean, getConfigInt, getConfigNames, getConfigStore, getExtension, getInt, getLocale, getName, getValueDescriptor, isOptional, setConfig, validatepublic static org.slf4j.Logger logger
public static final java.lang.String CONFIG_ALLOW_SAME_KEY_RENEWAL
public ICertificateAuthority mCA
public void init(IConfigStore config) throws EProfileException
PolicyConstraintinit in class EnrollConstraintconfig - configuration store for this constraintEProfileException - failed to initializepublic IDescriptor getConfigDescriptor(java.util.Locale locale, java.lang.String name)
IConfigTemplategetConfigDescriptor in interface IConfigTemplategetConfigDescriptor in class EnrollConstraintlocale - user localename - configuration parameter namepublic java.lang.String getDefaultConfig(java.lang.String name)
public void validate(IRequest request, org.mozilla.jss.netscape.security.x509.X509CertInfo info) throws ERejectException
validate in class EnrollConstraintrequest - enrollment requestinfo - certificate templateERejectException - request is rejected due
to violation of constraintpublic java.lang.String getText(java.util.Locale locale)
getText in class EnrollConstraintlocale - locale of the end-userpublic static java.lang.String escapeBinaryData(byte[] data)
public boolean isApplicable(PolicyDefault def)
PolicyConstraintisApplicable in class EnrollConstraintdef - default policy to be checked