public abstract class EnrollInput extends ProfileInput
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
protected IConfigStore |
mConfig |
protected java.util.Vector<java.lang.String> |
mConfigNames |
protected Profile |
mProfile |
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 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(Profile profile,
IConfigStore config)
Initializes this default policy.
|
abstract void |
populate(java.util.Map<java.lang.String,java.lang.String> 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) |
public static org.slf4j.Logger logger
protected IConfigStore mConfig
protected java.util.Vector<java.lang.String> mValueNames
protected java.util.Vector<java.lang.String> mConfigNames
protected Profile mProfile
public void init(Profile profile, IConfigStore config) throws EProfileException
EProfileException
public IConfigStore getConfigStore()
ProfileInput
getConfigStore
in class ProfileInput
public abstract void populate(java.util.Map<java.lang.String,java.lang.String> ctx, IRequest request) throws java.lang.Exception
populate
in class ProfileInput
ctx
- profile contextrequest
- requestjava.lang.Exception
- failed to populatepublic abstract java.lang.String getName(java.util.Locale locale)
getName
in class ProfileInput
locale
- user localepublic abstract java.lang.String getText(java.util.Locale locale)
getText
in class ProfileInput
locale
- user localepublic abstract IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
getValueDescriptor
in class ProfileInput
locale
- user localename
- property namepublic void addValueName(java.lang.String name)
public java.util.Enumeration<java.lang.String> getValueNames()
getValueNames
in class ProfileInput
public void addConfigName(java.lang.String name)
public java.util.Enumeration<java.lang.String> getConfigNames()
IConfigTemplate
public void setConfig(java.lang.String name, java.lang.String value) throws EPropertyException
IConfigTemplate
name
- parameter namevalue
- parameter valueEPropertyException
- failed to set parameterpublic java.lang.String getConfig(java.lang.String name)
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
ProfileInput
getValue
in class ProfileInput
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 class ProfileInput
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
locale
- user localename
- configuration parameter namepublic void verifyPOP(java.util.Locale locale, org.mozilla.jss.pkix.crmf.CertReqMsg certReqMsg) throws EProfileException
EProfileException
protected java.lang.String auditSubjectID()