getPasswordPolicy() method

Return the DVPasswordPolicy (as defined in com.sybase.persistence.DataVault) which stores the information of the Password Policy.

Syntax

public com.sybase.persistence.DataVault.DVPasswordPolicy getPasswordPolicy () throws SMPException

Exceptions

Example 1

try {
   AppSettings appSettings = new AppSettings(clientConnection);
   DVPasswordPolicy passwordPolicy = appSettings.getPasswordPolicy();
} catch (SMPException e) {
   e.printStackTrace();
}

Usage

The application uses it to enforce the composition of the Password.