Class DefaultPropertiesPasswordManager
java.lang.Object
org.kawanfw.sql.api.server.auth.crypto.DefaultPropertiesPasswordManager
- All Implemented Interfaces:
PropertiesPasswordManager
public class DefaultPropertiesPasswordManager extends Object implements PropertiesPasswordManager
This default implementation will extract the password from the "password"
property of the file
This default implementation is provided as is: password is not secured if an attacker gets access to the server.
Note that the
properties_password_manager.properties which
must be located in the same directory as the aceql-server.properties
file. 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. - Author:
- Nicolas de Pomereu
-
Constructor Summary
Constructors Constructor Description DefaultPropertiesPasswordManager() -
Method Summary
Modifier and Type Method Description char[]getPassword()Returns the value of the "password" property contained in the fileproperties_password_manager.propertieswhich must be located in the same directory as theaceql-server.propertiesfile.
-
Constructor Details
-
DefaultPropertiesPasswordManager
public DefaultPropertiesPasswordManager()
-
-
Method Details
-
getPassword
Returns the value of the "password" property contained in the fileproperties_password_manager.propertieswhich must be located in the same directory as theaceql-server.propertiesfile.
Returnsnullif the file does not exist.- Specified by:
getPasswordin interfacePropertiesPasswordManager- Returns:
- the password to use to decrypt the
Propertiesof theaceql-server.propertiesfile. - Throws:
IOException- if an IOException occursSQLException- if a SQLException occurs
-