public abstract class EnrollInput extends java.lang.Object implements IProfileInput
Modifier and Type | Field and Description |
---|---|
protected IConfigStore |
mConfig |
protected java.util.Vector |
mConfigNames |
protected IProfile |
mProfile |
protected ILogger |
mSignedAuditLogger |
protected java.util.Vector |
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 |
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 |
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 mValueNames
protected java.util.Vector mConfigNames
protected IProfile mProfile
protected ILogger mSignedAuditLogger
public void init(IProfile profile, IConfigStore config) throws EProfileException
init
in interface IProfileInput
profile
- owner of this inputconfig
- configuration storeEProfileException
- failed to initializepublic IConfigStore getConfigStore()
IProfileInput
getConfigStore
in interface IProfileInput
public abstract void populate(IProfileContext ctx, IRequest request) throws EProfileException
populate
in interface IProfileInput
ctx
- profile contextrequest
- requestEProfileException
- failed to populatepublic abstract java.lang.String getName(java.util.Locale locale)
getName
in interface IProfileInput
locale
- user localepublic abstract java.lang.String getText(java.util.Locale locale)
getText
in interface IProfileInput
locale
- user localepublic abstract IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
getValueDescriptor
in interface IProfileInput
locale
- user localename
- property namepublic void addValueName(java.lang.String name)
public java.util.Enumeration getValueNames()
getValueNames
in interface IProfileInput
public void addConfigName(java.lang.String name)
public java.util.Enumeration getConfigNames()
IConfigTemplate
getConfigNames
in interface IConfigTemplate
public void setConfig(java.lang.String name, java.lang.String value) throws EPropertyException
IConfigTemplate
setConfig
in interface IConfigTemplate
name
- parameter namevalue
- parameter valueEPropertyException
- failed to set parameterpublic java.lang.String getConfig(java.lang.String name)
IConfigTemplate
getConfig
in interface IConfigTemplate
public 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
IProfileInput
getValue
in interface IProfileInput
name
- 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 IProfileInput
name
- property namelocale
- user localerequest
- requestvalue
- valueEPropertyException
public java.util.Locale getLocale(IRequest request)
public IDescriptor getConfigDescriptor(java.util.Locale locale, java.lang.String name)
IConfigTemplate
getConfigDescriptor
in interface IConfigTemplate
locale
- user localename
- configuration parameter namepublic void verifyPOP(java.util.Locale locale, org.mozilla.jss.pkix.crmf.CertReqMsg certReqMsg) throws EProfileException
EProfileException
protected void audit(java.lang.String msg)
msg
- signed audit log messageprotected java.lang.String auditSubjectID()