public class ValidityConstraint extends EnrollConstraint
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_CHECK_NOT_AFTER |
static java.lang.String |
CONFIG_CHECK_NOT_BEFORE |
static java.lang.String |
CONFIG_NOT_BEFORE_GRACE_PERIOD |
static java.lang.String |
CONFIG_RANGE |
static java.lang.String |
CONFIG_RANGE_UNIT |
static long |
SECS_IN_MS |
CONFIG_NAME, mConfig, mConfigNames| Constructor and Description |
|---|
ValidityConstraint() |
| Modifier and Type | Method and Description |
|---|---|
int |
convertRangeUnit(java.lang.String unit) |
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.
|
addConfigName, getBoolean, getConfig, getConfig, getConfigBoolean, getConfigInt, getConfigNames, getConfigStore, getExtension, getInt, getLocale, getName, getValueDescriptor, isOptional, validatepublic static final java.lang.String CONFIG_RANGE
public static final java.lang.String CONFIG_RANGE_UNIT
public static final java.lang.String CONFIG_NOT_BEFORE_GRACE_PERIOD
public static final java.lang.String CONFIG_CHECK_NOT_BEFORE
public static final java.lang.String CONFIG_CHECK_NOT_AFTER
public static final long SECS_IN_MS
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 void setConfig(java.lang.String name,
java.lang.String value)
throws EPropertyException
IConfigTemplatesetConfig in interface IConfigTemplatesetConfig in class EnrollConstraintname - parameter namevalue - parameter valueEPropertyException - failed to set parameterpublic IDescriptor getConfigDescriptor(java.util.Locale locale, java.lang.String name)
IConfigTemplategetConfigDescriptor in interface IConfigTemplategetConfigDescriptor in class EnrollConstraintlocale - user localename - configuration parameter namepublic int convertRangeUnit(java.lang.String unit)
throws java.lang.Exception
java.lang.Exceptionpublic 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