public interface PasswordComponent
dbmses
during this session. Passwords are never
stored on disk for security reasons.Modifier and Type | Method and Description |
---|---|
default Optional<char[]> |
get(Dbms dbms)
Returns the password associated with the specified dbms.
|
Optional<char[]> |
get(String dbmsName)
Returns the password associated with the specified dbms.
|
default void |
put(Dbms dbms,
char[] password)
Stores the specified password for the specified dbmsName.
|
void |
put(String dbmsName,
char[] password)
Stores the specified password for the specified dbmsName.
|
void put(String dbmsName, char[] password)
Warning: Note that the password might still be stored in the String cache somewhere else in the JVM memory.
dbmsName
- the dbms name used as a keypassword
- the password associated with that dbmsdefault void put(Dbms dbms, char[] password)
put(dbms.getName(), password)
.
If the dbmsName already had a stored password, that password
is removed and will no longer exist in memory.
Warning: Note that the password might still be stored in the String cache somewhere else in the JVM memory.
dbms
- the dbms used as a keypassword
- the password associated with that dbmsOptional<char[]> get(String dbmsName)
dbmsName
- the dbms name used as a keyCopyright © 2017 Speedment, Inc.. All rights reserved.