Customizing the IPasswordPolicy interface

The policy for password creation and encryption is defined in the IPasswordPolicy interface. A default implementation is provided by the BTT Access Control to demonstrate the usage of this interface. You can find the implementation at com.ibm.btt.bc.ac.DefaultPasswordPolicy in bttbcacconmmon.jar. The end user should customize this interface to meet the business policy of the password management.
There are two methods in the IPasswordPolicy interface.
public interface IPasswordPolicy {
	public String generatePassword(String userid) throws 
BTTSecurityException;
	public String encryptPassword(Serializable info) throws 
BTTSecurityException;
}
After you customize the IPasswordPolicy interface, you need to inject your implementation to the configuation of the IBTTSecurityManager interface. The following is the sample code for customizing the IPasswordPolicy interface.
<branch 001.xml>
             <com.ibm.btt.bc.ac.DefaultPasswordPolicy id="passwordPolicy" />
<com.ibm.btt.bc.ac.impl.BTTSecurityManager id="securityManager">
            <ref Injection="securityObjectManager" 
refId="securityObjectManager" />
       </com.ibm.btt.bc.ac.impl.BTTSecurityManager>
       <!—— the configuration for IBTTSecurityObjectManager -->
</branch001.xml>