Package com.netscape.cms.profile.input
Class SubjectDNInput
- java.lang.Object
-
- com.netscape.cms.profile.common.ProfileInput
-
- com.netscape.cms.profile.input.EnrollInput
-
- com.netscape.cms.profile.input.SubjectDNInput
-
- All Implemented Interfaces:
IConfigTemplate
public class SubjectDNInput extends EnrollInput
This plugin accepts subject DN from end user.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerloggerstatic java.lang.StringVAL_SUBJECT-
Fields inherited from class com.netscape.cms.profile.input.EnrollInput
mConfig, mConfigNames, mProfile, mValueNames
-
-
Constructor Summary
Constructors Constructor Description SubjectDNInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConfig(java.lang.String name)Retrieves configuration parameter by name.IDescriptorgetConfigDescriptor(java.util.Locale locale, java.lang.String name)Returns the descriptors of configuration parameter.java.lang.StringgetName(java.util.Locale locale)Retrieves the localizable name of this policy.java.lang.StringgetText(java.util.Locale locale)Retrieves the localizable description of this policy.IDescriptorgetValueDescriptor(java.util.Locale locale, java.lang.String name)Retrieves the descriptor of the given value parameter by name.java.util.Enumeration<java.lang.String>getValueNames()Returns selected value names based on the configuration.voidinit(Profile profile, IConfigStore config)Initializes this default policy.protected voidparseSubjectName(org.mozilla.jss.netscape.security.x509.X500Name subj, org.mozilla.jss.netscape.security.x509.X509CertInfo info, IRequest req)voidpopulate(java.util.Map<java.lang.String,java.lang.String> ctx, IRequest request)Populates the request with this policy default.-
Methods inherited from class com.netscape.cms.profile.input.EnrollInput
addConfigName, addValueName, auditSubjectID, getConfigNames, getConfigStore, getDefaultConfig, getLocale, getValue, setConfig, setValue, verifyPOP
-
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
VAL_SUBJECT
public static final java.lang.String VAL_SUBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(Profile profile, IConfigStore config) throws EProfileException
Initializes this default policy.- Overrides:
initin classEnrollInput- Throws:
EProfileException
-
getName
public java.lang.String getName(java.util.Locale locale)
Retrieves the localizable name of this policy.- Specified by:
getNamein classEnrollInput- Parameters:
locale- user locale- Returns:
- localized input name
-
getText
public java.lang.String getText(java.util.Locale locale)
Retrieves the localizable description of this policy.- Specified by:
getTextin classEnrollInput- Parameters:
locale- user locale- Returns:
- localized input description
-
getConfig
public java.lang.String getConfig(java.lang.String name)
Description copied from interface:IConfigTemplateRetrieves configuration parameter by name.- Specified by:
getConfigin interfaceIConfigTemplate- Overrides:
getConfigin classEnrollInput- Returns:
- parameter
-
getValueNames
public java.util.Enumeration<java.lang.String> getValueNames()
Returns selected value names based on the configuration.- Overrides:
getValueNamesin classEnrollInput- Returns:
- a list of property names
-
populate
public void populate(java.util.Map<java.lang.String,java.lang.String> ctx, IRequest request) throws java.lang.ExceptionPopulates the request with this policy default.- Specified by:
populatein classEnrollInput- Parameters:
ctx- profile contextrequest- request- Throws:
java.lang.Exception- failed to populate
-
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 classEnrollInput- Parameters:
locale- user localename- configuration parameter name- Returns:
- descriptor
-
getValueDescriptor
public IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
Retrieves the descriptor of the given value parameter by name.- Specified by:
getValueDescriptorin classEnrollInput- Parameters:
locale- user localename- property name- Returns:
- descriptor of the property
-
parseSubjectName
protected void parseSubjectName(org.mozilla.jss.netscape.security.x509.X500Name subj, org.mozilla.jss.netscape.security.x509.X509CertInfo info, IRequest req) throws EProfileException- Throws:
EProfileException
-
-