Package com.netscape.cms.profile.input
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfigName
(String name) void
addValueName
(String name) protected String
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.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 String
Retrieves the localizable name of this policy.abstract String
Retrieves the localizable description of this policy.Retrieves value from the request.abstract IDescriptor
getValueDescriptor
(Locale locale, String name) Retrieves the descriptor of the given value property by name.Retrieves a list of names of the value parameter.void
init
(Profile profile, ConfigStore config) Initializes this default policy.abstract void
Populates the request with this policy default.void
Sets configuration parameter.void
Sets 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:ProfileInput
Returns configuration store.- Specified by:
getConfigStore
in classProfileInput
- Returns:
- configuration store
-
populate
Populates the request with this policy default.- Specified by:
populate
in classProfileInput
- Parameters:
ctx
- profile contextrequest
- request- Throws:
Exception
- failed to populate
-
getName
Retrieves the localizable name of this policy.- Specified by:
getName
in classProfileInput
- Parameters:
locale
- user locale- Returns:
- localized input name
-
getText
Retrieves the localizable description of this policy.- Specified by:
getText
in classProfileInput
- Parameters:
locale
- user locale- Returns:
- localized input description
-
getValueDescriptor
Retrieves the descriptor of the given value property by name.- Specified by:
getValueDescriptor
in 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:
getValueNames
in classProfileInput
- Returns:
- a list of property names
-
addConfigName
-
getConfigNames
Description copied from interface:IConfigTemplate
Returns a list of configuration parameter names.- Returns:
- parameter names
-
setConfig
Description copied from interface:IConfigTemplate
Sets configuration parameter.- Parameters:
name
- parameter namevalue
- parameter value- Throws:
EPropertyException
- failed to set parameter
-
getConfig
Description copied from interface:IConfigTemplate
Retrieves configuration parameter by name.- Returns:
- parameter
-
getDefaultConfig
-
getValue
Description copied from class:ProfileInput
Retrieves value from the request.- Specified by:
getValue
in classProfileInput
- Parameters:
name
- property namelocale
- user localerequest
- request- Throws:
EProfileException
- failed to get value
-
setValue
public void setValue(String name, Locale locale, Request request, String value) throws EPropertyException Sets the value of the given value parameter by name.- Specified by:
setValue
in classProfileInput
- Parameters:
name
- property namelocale
- user localerequest
- requestvalue
- value- Throws:
EPropertyException
-
getLocale
-
getConfigDescriptor
Description copied from interface:IConfigTemplate
Returns 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
-