Class EnrollInput
java.lang.Object
com.netscape.cms.profile.common.ProfileInput
com.netscape.cms.profile.input.EnrollInput
- All Implemented Interfaces:
IConfigTemplate
- Direct Known Subclasses:
CertReqInput,CMCCertReqInput,DualKeyGenInput,EncryptionKeyGenInput,FileSigningInput,GenericInput,ImageInput,KeyGenInput,nsHKeyCertReqInput,nsNKeyCertReqInput,SerialNumRenewInput,ServerKeygenInput,SigningKeyGenInput,SubjectAltNameExtInput,SubjectDNInput,SubjectNameInput,SubmitterInfoInput
This class implements the base enrollment input.
- Version:
- $Revision$, $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Loggerprotected IConfigStoreprotected Profile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigName(String name) voidaddValueName(String name) protected StringSigned Audit Log Subject ID This method is inherited by all extended "CMSServlet"s, and is called to obtain the "SubjectID" for a signed audit log message.Retrieves configuration parameter by name.getConfigDescriptor(Locale locale, String name) Returns the descriptors of configuration parameter.Returns a list of configuration parameter names.Returns configuration store.getDefaultConfig(String name) abstract StringRetrieves the localizable name of this policy.abstract StringRetrieves the localizable description of this policy.Retrieves value from the request.abstract IDescriptorgetValueDescriptor(Locale locale, String name) Retrieves the descriptor of the given value property by name.Retrieves a list of names of the value parameter.voidinit(Profile profile, IConfigStore config) Initializes this default policy.abstract voidPopulates the request with this policy default.voidSets configuration parameter.voidSets the value of the given value parameter by name.void
-
Field Details
-
logger
public static org.slf4j.Logger logger -
mConfig
-
mValueNames
-
mConfigNames
-
mProfile
-
-
Constructor Details
-
EnrollInput
public EnrollInput()
-
-
Method Details
-
init
Initializes this default policy.- Throws:
EProfileException
-
getConfigStore
Description copied from class:ProfileInputReturns configuration store.- Specified by:
getConfigStorein classProfileInput- Returns:
- configuration store
-
populate
-
getName
Retrieves the localizable name of this policy.- Specified by:
getNamein classProfileInput- Parameters:
locale- user locale- Returns:
- localized input name
-
getText
Retrieves the localizable description of this policy.- Specified by:
getTextin classProfileInput- Parameters:
locale- user locale- Returns:
- localized input description
-
getValueDescriptor
Retrieves the descriptor of the given value property by name.- Specified by:
getValueDescriptorin classProfileInput- Parameters:
locale- user localename- property name- Returns:
- descriptor of the property
-
addValueName
-
getValueNames
Retrieves a list of names of the value parameter.- Specified by:
getValueNamesin classProfileInput- Returns:
- a list of property names
-
addConfigName
-
getConfigNames
Description copied from interface:IConfigTemplateReturns a list of configuration parameter names.- Returns:
- parameter names
-
setConfig
Description copied from interface:IConfigTemplateSets configuration parameter.- Parameters:
name- parameter namevalue- parameter value- Throws:
EPropertyException- failed to set parameter
-
getConfig
Description copied from interface:IConfigTemplateRetrieves configuration parameter by name.- Returns:
- parameter
-
getDefaultConfig
-
getValue
Description copied from class:ProfileInputRetrieves value from the request.- Specified by:
getValuein classProfileInput- Parameters:
name- property namelocale- user localerequest- request- Throws:
EProfileException- failed to get value
-
setValue
public void setValue(String name, Locale locale, IRequest request, String value) throws EPropertyException Sets the value of the given value parameter by name.- Specified by:
setValuein classProfileInput- Parameters:
name- property namelocale- user localerequest- requestvalue- value- Throws:
EPropertyException
-
getLocale
-
getConfigDescriptor
Description copied from interface:IConfigTemplateReturns the descriptors of configuration parameter.- Parameters:
locale- user localename- configuration parameter name- Returns:
- descriptor
-
verifyPOP
public void verifyPOP(Locale locale, org.mozilla.jss.pkix.crmf.CertReqMsg certReqMsg) throws EProfileException - Throws:
EProfileException
-
auditSubjectID
Signed Audit Log Subject ID This method is inherited by all extended "CMSServlet"s, and is called to obtain the "SubjectID" for a signed audit log message.- Returns:
- id string containing the signed audit log message SubjectID
-