Constructor
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.
SciPasswordElement Class | Plumtree.Remote.Sci Namespace | CSPCodec