public class KeyUsageExtConstraint extends EnrollConstraint
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_CRITICAL |
static java.lang.String |
CONFIG_CRL_SIGN |
static java.lang.String |
CONFIG_DATA_ENCIPHERMENT |
static java.lang.String |
CONFIG_DECIPHER_ONLY |
static java.lang.String |
CONFIG_DIGITAL_SIGNATURE |
static java.lang.String |
CONFIG_ENCIPHER_ONLY |
static java.lang.String |
CONFIG_KEY_AGREEMENT |
static java.lang.String |
CONFIG_KEY_CERTSIGN |
static java.lang.String |
CONFIG_KEY_ENCIPHERMENT |
static java.lang.String |
CONFIG_NON_REPUDIATION |
CONFIG_NAME, mConfig, mConfigNames| Constructor and Description |
|---|
KeyUsageExtConstraint() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isSet(boolean[] bits,
int position) |
void |
validate(IRequest request,
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 final java.lang.String CONFIG_CRITICAL
public static final java.lang.String CONFIG_DIGITAL_SIGNATURE
public static final java.lang.String CONFIG_NON_REPUDIATION
public static final java.lang.String CONFIG_KEY_ENCIPHERMENT
public static final java.lang.String CONFIG_DATA_ENCIPHERMENT
public static final java.lang.String CONFIG_KEY_AGREEMENT
public static final java.lang.String CONFIG_KEY_CERTSIGN
public static final java.lang.String CONFIG_CRL_SIGN
public static final java.lang.String CONFIG_ENCIPHER_ONLY
public static final java.lang.String CONFIG_DECIPHER_ONLY
public void init(IProfile profile, IConfigStore config) throws EProfileException
IPolicyConstraintinit in interface IPolicyConstraintinit in class EnrollConstraintprofile - owner of this policyconfig - 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 boolean isSet(boolean[] bits,
int position)
public void validate(IRequest request, 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)
IPolicyConstraintgetText in interface IPolicyConstraintgetText in class EnrollConstraintlocale - locale of the end-userpublic boolean isApplicable(IPolicyDefault def)
IPolicyConstraintisApplicable in interface IPolicyConstraintisApplicable in class EnrollConstraintdef - default policy to be checked