public class CAValidityConstraint extends CAEnrollConstraint
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
CONFIG_NAME, CONFIG_PARAMS, mConfig, mConfigNames
Constructor and Description |
---|
CAValidityConstraint() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText(java.util.Locale locale)
Returns localized description of this constraint.
|
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.
|
getCACert
addConfigName, getBoolean, getConfig, getConfig, getConfigBoolean, getConfigDescriptor, getConfigInt, getConfigNames, getConfigStore, getExtension, getInt, getLocale, getName, getValueDescriptor, isOptional, setConfig, validate
public void init(IConfigStore config) throws EProfileException
PolicyConstraint
init
in class EnrollConstraint
config
- configuration store for this constraintEProfileException
- failed to initializepublic void validate(IRequest request, org.mozilla.jss.netscape.security.x509.X509CertInfo info) throws ERejectException
validate
in class EnrollConstraint
request
- enrollment requestinfo
- certificate templateERejectException
- request is rejected due
to violation of constraintpublic java.lang.String getText(java.util.Locale locale)
PolicyConstraint
getText
in class EnrollConstraint
locale
- locale of the end-userpublic boolean isApplicable(PolicyDefault def)
PolicyConstraint
isApplicable
in class EnrollConstraint
def
- default policy to be checked