public abstract class EnrollInput extends java.lang.Object implements IProfileInput
| Modifier and Type | Field and Description |
|---|---|
protected IConfigStore |
mConfig |
protected java.util.Vector<java.lang.String> |
mConfigNames |
protected IProfile |
mProfile |
protected ILogger |
mSignedAuditLogger |
protected java.util.Vector<java.lang.String> |
mValueNames |
| Constructor and Description |
|---|
EnrollInput() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigName(java.lang.String name) |
void |
addValueName(java.lang.String name) |
protected void |
audit(java.lang.String msg)
Signed Audit Log
This method is inherited by all extended "CMSServlet"s,
and is called to store messages to the signed audit log.
|
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.
|
java.lang.String |
getConfig(java.lang.String name)
Retrieves configuration parameter by name.
|
IDescriptor |
getConfigDescriptor(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.
|
IConfigStore |
getConfigStore()
Returns configuration store.
|
java.lang.String |
getDefaultConfig(java.lang.String name) |
java.util.Locale |
getLocale(IRequest request) |
abstract java.lang.String |
getName(java.util.Locale locale)
Retrieves the localizable name of this policy.
|
abstract java.lang.String |
getText(java.util.Locale locale)
Retrieves the localizable description of this policy.
|
java.lang.String |
getValue(java.lang.String name,
java.util.Locale locale,
IRequest request)
Retrieves value from the request.
|
abstract IDescriptor |
getValueDescriptor(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.
|
void |
init(IProfile profile,
IConfigStore config)
Initializes this default policy.
|
abstract void |
populate(IProfileContext ctx,
IRequest request)
Populates the request with this policy default.
|
void |
setConfig(java.lang.String name,
java.lang.String value)
Sets configuration parameter.
|
void |
setValue(java.lang.String name,
java.util.Locale locale,
IRequest request,
java.lang.String value)
Sets the value of the given value parameter by name.
|
void |
verifyPOP(java.util.Locale locale,
org.mozilla.jss.pkix.crmf.CertReqMsg certReqMsg) |
protected IConfigStore mConfig
protected java.util.Vector<java.lang.String> mValueNames
protected java.util.Vector<java.lang.String> mConfigNames
protected IProfile mProfile
protected ILogger mSignedAuditLogger
public void init(IProfile profile, IConfigStore config) throws EProfileException
init in interface IProfileInputprofile - owner of this inputconfig - configuration storeEProfileException - failed to initializepublic IConfigStore getConfigStore()
IProfileInputgetConfigStore in interface IProfileInputpublic abstract void populate(IProfileContext ctx, IRequest request) throws EProfileException
populate in interface IProfileInputctx - profile contextrequest - requestEProfileException - failed to populatepublic abstract java.lang.String getName(java.util.Locale locale)
getName in interface IProfileInputlocale - user localepublic abstract java.lang.String getText(java.util.Locale locale)
getText in interface IProfileInputlocale - user localepublic abstract IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
getValueDescriptor in interface IProfileInputlocale - user localename - property namepublic void addValueName(java.lang.String name)
public java.util.Enumeration<java.lang.String> getValueNames()
getValueNames in interface IProfileInputpublic void addConfigName(java.lang.String name)
public java.util.Enumeration<java.lang.String> getConfigNames()
IConfigTemplategetConfigNames in interface IConfigTemplatepublic void setConfig(java.lang.String name,
java.lang.String value)
throws EPropertyException
IConfigTemplatesetConfig in interface IConfigTemplatename - parameter namevalue - parameter valueEPropertyException - failed to set parameterpublic java.lang.String getConfig(java.lang.String name)
IConfigTemplategetConfig in interface IConfigTemplatepublic java.lang.String getDefaultConfig(java.lang.String name)
public java.lang.String getValue(java.lang.String name,
java.util.Locale locale,
IRequest request)
throws EProfileException
IProfileInputgetValue in interface IProfileInputname - property namelocale - user localerequest - requestEProfileException - failed to get valuepublic void setValue(java.lang.String name,
java.util.Locale locale,
IRequest request,
java.lang.String value)
throws EPropertyException
setValue in interface IProfileInputname - property namelocale - user localerequest - requestvalue - valueEPropertyExceptionpublic java.util.Locale getLocale(IRequest request)
public IDescriptor getConfigDescriptor(java.util.Locale locale, java.lang.String name)
IConfigTemplategetConfigDescriptor in interface IConfigTemplatelocale - user localename - configuration parameter namepublic void verifyPOP(java.util.Locale locale,
org.mozilla.jss.pkix.crmf.CertReqMsg certReqMsg)
throws EProfileException
EProfileExceptionprotected void audit(java.lang.String msg)
msg - signed audit log messageprotected java.lang.String auditSubjectID()