Package com.netscape.cms.profile.input
Class EnrollInput
- java.lang.Object
-
- com.netscape.cms.profile.input.EnrollInput
-
- All Implemented Interfaces:
IProfileInput,IConfigTemplate
- Direct Known Subclasses:
CertReqInput,CMCCertReqInput,DualKeyGenInput,EncryptionKeyGenInput,FileSigningInput,GenericInput,ImageInput,KeyGenInput,nsHKeyCertReqInput,nsNKeyCertReqInput,SerialNumRenewInput,SigningKeyGenInput,SubjectAltNameExtInput,SubjectDNInput,SubjectNameInput,SubmitterInfoInput
public abstract class EnrollInput extends java.lang.Object implements IProfileInput
This class implements the base enrollment input.- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected IConfigStoremConfigprotected java.util.Vector<java.lang.String>mConfigNamesprotected IProfilemProfileprotected java.util.Vector<java.lang.String>mValueNames
-
Constructor Summary
Constructors Constructor Description EnrollInput()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddConfigName(java.lang.String name)voidaddValueName(java.lang.String name)protected java.lang.StringauditSubjectID()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.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.util.Enumeration<java.lang.String>getConfigNames()Returns a list of configuration parameter names.IConfigStoregetConfigStore()Returns configuration store.java.lang.StringgetDefaultConfig(java.lang.String name)java.util.LocalegetLocale(IRequest request)abstract java.lang.StringgetName(java.util.Locale locale)Retrieves the localizable name of this policy.abstract java.lang.StringgetText(java.util.Locale locale)Retrieves the localizable description of this policy.java.lang.StringgetValue(java.lang.String name, java.util.Locale locale, IRequest request)Retrieves value from the request.abstract IDescriptorgetValueDescriptor(java.util.Locale locale, java.lang.String name)Retrieves the descriptor of the given value property by name.java.util.Enumeration<java.lang.String>getValueNames()Retrieves a list of names of the value parameter.voidinit(IProfile profile, IConfigStore config)Initializes this default policy.abstract voidpopulate(IProfileContext ctx, IRequest request)Populates the request with this policy default.voidsetConfig(java.lang.String name, java.lang.String value)Sets configuration parameter.voidsetValue(java.lang.String name, java.util.Locale locale, IRequest request, java.lang.String value)Sets the value of the given value parameter by name.voidverifyPOP(java.util.Locale locale, org.mozilla.jss.pkix.crmf.CertReqMsg certReqMsg)
-
-
-
Field Detail
-
mConfig
protected IConfigStore mConfig
-
mValueNames
protected java.util.Vector<java.lang.String> mValueNames
-
mConfigNames
protected java.util.Vector<java.lang.String> mConfigNames
-
mProfile
protected IProfile mProfile
-
-
Method Detail
-
init
public void init(IProfile profile, IConfigStore config) throws EProfileException
Initializes this default policy.- Specified by:
initin interfaceIProfileInput- Parameters:
profile- owner of this inputconfig- configuration store- Throws:
EProfileException- failed to initialize
-
getConfigStore
public IConfigStore getConfigStore()
Description copied from interface:IProfileInputReturns configuration store.- Specified by:
getConfigStorein interfaceIProfileInput- Returns:
- configuration store
-
populate
public abstract void populate(IProfileContext ctx, IRequest request) throws EProfileException
Populates the request with this policy default.- Specified by:
populatein interfaceIProfileInput- Parameters:
ctx- profile contextrequest- request- Throws:
EProfileException- failed to populate
-
getName
public abstract java.lang.String getName(java.util.Locale locale)
Retrieves the localizable name of this policy.- Specified by:
getNamein interfaceIProfileInput- Parameters:
locale- user locale- Returns:
- localized input name
-
getText
public abstract java.lang.String getText(java.util.Locale locale)
Retrieves the localizable description of this policy.- Specified by:
getTextin interfaceIProfileInput- Parameters:
locale- user locale- Returns:
- localized input description
-
getValueDescriptor
public abstract IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
Retrieves the descriptor of the given value property by name.- Specified by:
getValueDescriptorin interfaceIProfileInput- Parameters:
locale- user localename- property name- Returns:
- descriptor of the property
-
addValueName
public void addValueName(java.lang.String name)
-
getValueNames
public java.util.Enumeration<java.lang.String> getValueNames()
Retrieves a list of names of the value parameter.- Specified by:
getValueNamesin interfaceIProfileInput- Returns:
- a list of property names
-
addConfigName
public void addConfigName(java.lang.String name)
-
getConfigNames
public java.util.Enumeration<java.lang.String> getConfigNames()
Description copied from interface:IConfigTemplateReturns a list of configuration parameter names.- Specified by:
getConfigNamesin interfaceIConfigTemplate- Returns:
- parameter names
-
setConfig
public void setConfig(java.lang.String name, java.lang.String value) throws EPropertyExceptionDescription copied from interface:IConfigTemplateSets configuration parameter.- Specified by:
setConfigin interfaceIConfigTemplate- Parameters:
name- parameter namevalue- parameter value- Throws:
EPropertyException- failed to set parameter
-
getConfig
public java.lang.String getConfig(java.lang.String name)
Description copied from interface:IConfigTemplateRetrieves configuration parameter by name.- Specified by:
getConfigin interfaceIConfigTemplate- Returns:
- parameter
-
getDefaultConfig
public java.lang.String getDefaultConfig(java.lang.String name)
-
getValue
public java.lang.String getValue(java.lang.String name, java.util.Locale locale, IRequest request) throws EProfileExceptionDescription copied from interface:IProfileInputRetrieves value from the request.- Specified by:
getValuein interfaceIProfileInput- Parameters:
name- property namelocale- user localerequest- request- Throws:
EProfileException- failed to get value
-
setValue
public void setValue(java.lang.String name, java.util.Locale locale, IRequest request, java.lang.String value) throws EPropertyExceptionSets the value of the given value parameter by name.- Specified by:
setValuein interfaceIProfileInput- Parameters:
name- property namelocale- user localerequest- requestvalue- value- Throws:
EPropertyException
-
getLocale
public java.util.Locale getLocale(IRequest request)
-
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- Parameters:
locale- user localename- configuration parameter name- Returns:
- descriptor
-
verifyPOP
public void verifyPOP(java.util.Locale locale, org.mozilla.jss.pkix.crmf.CertReqMsg certReqMsg) throws EProfileException- Throws:
EProfileException
-
auditSubjectID
protected java.lang.String 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
-
-