|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.plumtree.remote.sci.SciPasswordElement
Represents a password control with confirmation box.
If a developer does not want to store the unencrypted value, use the IAdminEditor.finalize() as follows:
1. Check if the password value is not blank and is not equal to *******, or whatever value has been set in setValue.
2. If the password passes the above test and there not already an existing encrypted password, encrypt the password, add it to the
NamedValueMap with your key for encrypted password.
3. If the password passes the above test and there is already an existing encrypted password, decrypt the encrypted password
and compare it to the new password. If the new password is different, encrypt it and add it to the NamedValueMap
with your key for encrypted password.
4. Remove the password from the NamedValueMap so it is not stored unencrypted.
| Constructor Summary | |
SciPasswordElement(java.lang.String fieldName,
java.lang.String labelText,
java.lang.String verifyText,
java.lang.String matchText)
Valued constructor. |
|
| Method Summary | |
org.w3c.dom.Node |
getRootNode()
Gets the Node root node to add to the page. |
void |
setSize(int size)
Sets the size of the control in characters (e.g., 50). |
void |
setValue(java.lang.String value)
Sets the displayed password value, usually ********. |
java.lang.String |
toString()
Writes the elements to a string for debugging. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SciPasswordElement(java.lang.String fieldName,
java.lang.String labelText,
java.lang.String verifyText,
java.lang.String matchText)
Note that values retrieved from the portal using IDocFetchProvider.initialize(DataSourceInfo dsInfo) will be decoded in the process. To prevent + from being decoded into a space and % from having indeterminate behavior, make sure that all values entered into the datasource using SCI pages are encoded using com.plumtree.remote.util.CSPCodec. Likewise, all values that have been encoded in the SCI datasource pages should be decoded when displayed with SCI using Pcom.plumtree.remote.util.CSPCodec. If the developer is not using DocFetch this is not an issue.
fieldName - field name. The fieldName should be uppercase as the portal will uppercase all names in the NamedValue[] returned by IAdminEditor.finalize().labelText - text to display to the left of the controlverifyText - text to display to the left of the second password box for confirmation, usually "Confirm"matchText - message to display in Javascript alert if passwords do not matchCSPCodec| Method Detail |
public void setSize(int size)
size - size of controlpublic void setValue(java.lang.String value)
value - password valuepublic org.w3c.dom.Node getRootNode()
Node root node to add to the page.
getRootNode in interface ISciElementpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©2007 BEA Systems, Inc. All Rights Reserved.