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
user.home/.kawansoft/properties_password_manager.properties. 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 password value of property contained inuser.home/.kawansoft/properties_password_manager.properties.
-
Constructor Details
-
DefaultPropertiesPasswordManager
public DefaultPropertiesPasswordManager()
-
-
Method Details
-
getPassword
Returns the password value of property contained inuser.home/.kawansoft/properties_password_manager.properties.
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
-