mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-641: Standardize database username/password retrieval via JDBCEnvironment.
This commit is contained in:
@@ -166,4 +166,30 @@ public abstract class JDBCEnvironment extends DelegatingEnvironment {
|
||||
*/
|
||||
public abstract boolean autoCreateAbsentAccounts() throws GuacamoleException;
|
||||
|
||||
/**
|
||||
* Returns the username that should be used when authenticating with the
|
||||
* database containing the Guacamole authentication tables.
|
||||
*
|
||||
* @return
|
||||
* The username for the database.
|
||||
*
|
||||
* @throws GuacamoleException
|
||||
* If an error occurs while retrieving the property value, or if the
|
||||
* value was not set, as this property is required.
|
||||
*/
|
||||
public abstract String getUsername() throws GuacamoleException;
|
||||
|
||||
/**
|
||||
* Returns the password that should be used authenticating with the
|
||||
* database containing the Guacamole authentication tables.
|
||||
*
|
||||
* @return
|
||||
* The password for the database.
|
||||
*
|
||||
* @throws GuacamoleException
|
||||
* If an error occurs while retrieving the property value, or if the
|
||||
* value was not set, as this property is required.
|
||||
*/
|
||||
public abstract String getPassword() throws GuacamoleException;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user