Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# SciPasswordElement Constructor

Constructor

public SciPasswordElement(
string fieldName,
string text,
string verifyText,
string matchText
);

#### Parameters

fieldName
  name of password field. The fieldName should be uppercase as the portal will uppercase all names in the NamedValueMap after IAdminEditor.Finalize() is called.
text
  text to display to the left of the control
verifyText
  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 match

#### Remarks

If a developer does not want to store the unencrypted value, use the

    IAdminEditor.Finalize()

as follows: Check if the password value is not blank and is not equal to *******, or whatever value has been set in setValue. 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. 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. Remove the password from the NamedValueMap so it is not stored unencrypted.

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 Plumtree.Remote.Util.CSPCodec. Likewise, all values that have been encoded in the SCI datasource pages should be decoded when displayed with SCI using Plumtree.Remote.Util.CSPCodec. This is not an issue when not using DocFetch.

#### See Also

SciPasswordElement Class | Plumtree.Remote.Sci Namespace | CSPCodec