|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPolicyDefault
This represents a default policy that populates the request with additional values.
During request submission process, a default policy is invoked to populate the default values in the request. The default values will later on be used for execution. The default values are like the parameters for the request.
This policy is called in 2 places. For automated enrollment request, this policy is invoked to populate the HTTP parameters into the request. For request that cannot be executed immediately, this policy will be invoked again right after the agent's approval.
Each default policy may contain zero or more properties that describe the default value. For example, a X509 Key can be described by its key type, key length, and key data. The properties help to describe the default value into human readable values.
Method Summary | |
---|---|
IConfigStore |
getConfigStore()
Retrieves the configuration store of this default. |
java.lang.String |
getName(java.util.Locale locale)
Retrieves the localizable name of this policy. |
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 the value of the given value property by name. |
IDescriptor |
getValueDescriptor(java.util.Locale locale,
java.lang.String name)
Retrieves the descriptor of the given property by name. |
java.util.Enumeration |
getValueNames()
Retrieves a list of names of the property. |
void |
init(IProfile profile,
IConfigStore config)
Initializes this default policy. |
void |
populate(IRequest request)
Populates the request with this policy default. |
void |
setValue(java.lang.String name,
java.util.Locale locale,
IRequest request,
java.lang.String value)
Sets the value of the given value property by name. |
Methods inherited from interface com.netscape.certsrv.property.IConfigTemplate |
---|
getConfig, getConfigDescriptor, getConfigNames, setConfig |
Method Detail |
---|
void init(IProfile profile, IConfigStore config) throws EProfileException
profile
- owner of this default policyconfig
- configuration store for this default
EProfileException
- failed to initializeIConfigStore getConfigStore()
void populate(IRequest request) throws EProfileException
request
- request to be populated
EProfileException
- failed to populatejava.lang.String getName(java.util.Locale locale)
locale
- locale of the end user
java.lang.String getText(java.util.Locale locale)
locale
- locale of the end user
java.util.Enumeration getValueNames()
IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
locale
- locale of the end username
- name of property
void setValue(java.lang.String name, java.util.Locale locale, IRequest request, java.lang.String value) throws EPropertyException
name
- name of propertylocale
- locale of the end userrequest
- requestvalue
- value to be set in the given request
EPropertyException
- failed to set propertyjava.lang.String getValue(java.lang.String name, java.util.Locale locale, IRequest request) throws EPropertyException
name
- name of propertylocale
- locale of the end userrequest
- request
EPropertyException
- failed to get property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |