Security.PasswordWallet Examples

This example reads account information (username and password) from the passwordwallet.

This example assumes that the passwordwallet within the smartsite.security.config file contains the following:

XML CopyCode image Copy Code
<passwordwallet>
    <account id="import" username="importuser" password="12345" />
    <account id="postcodewebservice" username="test" password="12345" />
</passwordwallet>

 

Smartsite SXML CopyCode image Copy Code
{security.passwordwallet.getusername(import)}
{security.passwordwallet.getpassword(import)}
Example Result CopyCode image Copy Code
importuser
12345