Class NSCertTypeExtConstraint
- java.lang.Object
-
- com.netscape.cms.profile.constraint.PolicyConstraint
-
- com.netscape.cms.profile.constraint.EnrollConstraint
-
- com.netscape.cms.profile.constraint.NSCertTypeExtConstraint
-
- All Implemented Interfaces:
IConfigTemplate
public class NSCertTypeExtConstraint extends EnrollConstraint
This class implements the Netscape certificate type extension constraint. It checks if the Netscape certificate type extension in the certificate template satisfies the criteria.- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_CRITICALstatic java.lang.StringCONFIG_EMAILstatic java.lang.StringCONFIG_EMAIL_CAstatic java.lang.StringCONFIG_OBJECT_SIGNINGstatic java.lang.StringCONFIG_OBJECT_SIGNING_CAstatic java.lang.StringCONFIG_SSL_CAstatic java.lang.StringCONFIG_SSL_CLIENTstatic java.lang.StringCONFIG_SSL_SERVER-
Fields inherited from class com.netscape.cms.profile.constraint.EnrollConstraint
CONFIG_NAME, CONFIG_PARAMS, logger, mConfig, mConfigNames
-
-
Constructor Summary
Constructors Constructor Description NSCertTypeExtConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDescriptorgetConfigDescriptor(java.util.Locale locale, java.lang.String name)Returns the descriptors of configuration parameter.java.lang.StringgetText(java.util.Locale locale)Returns localized description of this constraint.booleanisApplicable(PolicyDefault def)Checks if this constraint is applicable to the given default policy.voidvalidate(IRequest request, org.mozilla.jss.netscape.security.x509.X509CertInfo info)Validates the request.-
Methods inherited from class com.netscape.cms.profile.constraint.EnrollConstraint
addConfigName, getBoolean, getConfig, getConfig, getConfigBoolean, getConfigInt, getConfigNames, getConfigStore, getExtension, getInt, getLocale, getName, getValueDescriptor, init, isOptional, setConfig, validate
-
-
-
-
Field Detail
-
CONFIG_CRITICAL
public static final java.lang.String CONFIG_CRITICAL
- See Also:
- Constant Field Values
-
CONFIG_SSL_CLIENT
public static final java.lang.String CONFIG_SSL_CLIENT
- See Also:
- Constant Field Values
-
CONFIG_SSL_SERVER
public static final java.lang.String CONFIG_SSL_SERVER
- See Also:
- Constant Field Values
-
CONFIG_EMAIL
public static final java.lang.String CONFIG_EMAIL
- See Also:
- Constant Field Values
-
CONFIG_OBJECT_SIGNING
public static final java.lang.String CONFIG_OBJECT_SIGNING
- See Also:
- Constant Field Values
-
CONFIG_SSL_CA
public static final java.lang.String CONFIG_SSL_CA
- See Also:
- Constant Field Values
-
CONFIG_EMAIL_CA
public static final java.lang.String CONFIG_EMAIL_CA
- See Also:
- Constant Field Values
-
CONFIG_OBJECT_SIGNING_CA
public static final java.lang.String CONFIG_OBJECT_SIGNING_CA
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConfigDescriptor
public IDescriptor getConfigDescriptor(java.util.Locale locale, java.lang.String name)
Description copied from interface:IConfigTemplateReturns the descriptors of configuration parameter.- Specified by:
getConfigDescriptorin interfaceIConfigTemplate- Overrides:
getConfigDescriptorin classEnrollConstraint- Parameters:
locale- user localename- configuration parameter name- Returns:
- descriptor
-
validate
public void validate(IRequest request, org.mozilla.jss.netscape.security.x509.X509CertInfo info) throws ERejectException
Validates the request. The request is not modified during the validation.- Specified by:
validatein classEnrollConstraint- Parameters:
request- enrollment requestinfo- certificate template- Throws:
ERejectException- request is rejected due to violation of constraint
-
getText
public java.lang.String getText(java.util.Locale locale)
Description copied from class:PolicyConstraintReturns localized description of this constraint.- Overrides:
getTextin classEnrollConstraint- Parameters:
locale- locale of the end-user- Returns:
- localized description of this constraint
-
isApplicable
public boolean isApplicable(PolicyDefault def)
Description copied from class:PolicyConstraintChecks if this constraint is applicable to the given default policy.- Overrides:
isApplicablein classEnrollConstraint- Parameters:
def- default policy to be checked- Returns:
- true if this constraint can be applied to the given default policy
-
-