public final class UsernamePasswordCredentials extends Object implements AutoCloseable, Credentials
Constructor and Description |
---|
UsernamePasswordCredentials(String user,
String password)
Constructs the user credentials.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
String |
getPassword()
Returns the user password.
|
String |
getUser()
Returns the user name.
|
public void close()
close
in interface AutoCloseable
@NotNull public String getUser()
@NotNull public String getPassword()