public interface IPasswordPolicy { public String generatePassword(String userid) throws BTTSecurityException; public String encryptPassword(Serializable info) throws BTTSecurityException; }
Used to define how to generate a password for the user that is specified by the userid value and return the password
Use info as the key to encode the password, and return the encrypted password
<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>