Class DefaultPropertiesPasswordManager

All Implemented Interfaces:

public class DefaultPropertiesPasswordManager
extends Object
implements PropertiesPasswordManager
This default implementation will extract the password from the "password" property of the file user.home/.kawansoft/

This default implementation is provided as is: password is not secured if an attacker gets access to the server.
Note that the getPassword() will return null if the file does not exists.

Nicolas de Pomereu
  • Constructor Details

    • DefaultPropertiesPasswordManager

      public DefaultPropertiesPasswordManager()
  • Method Details

    • getPassword

      public char[] getPassword() throws IOException, SQLException
      Returns the password value of property contained in user.home/.kawansoft/
      Returns null if the file does not exist.
      Specified by:
      getPassword in interface PropertiesPasswordManager
      the password to use to decrypt the Properties of the file.
      IOException - if an IOException occurs
      SQLException - if a SQLException occurs