Beispiel #1
0
 /**
  * Simple constructor.
  *
  * @param agencyId
  * @param hostName
  * @param active
  * @param dbName
  * @param dbType
  * @param dbHost
  * @param dbUserName
  * @param dbPassword The non-encrypted password
  */
 public WebAgency(
     String agencyId,
     String hostName,
     boolean active,
     String dbName,
     String dbType,
     String dbHost,
     String dbUserName,
     String dbPassword) {
   this.agencyId = agencyId;
   this.hostName = hostName;
   this.active = active;
   this.dbName = dbName;
   this.dbType = dbType;
   this.dbHost = dbHost;
   this.dbUserName = dbUserName;
   this.dbEncryptedPassword = Encryption.encrypt(dbPassword);
 }
Beispiel #2
0
 public String getDbPassword() {
   return Encryption.decrypt(dbEncryptedPassword);
 }