public final class BasicAuthenticator extends Authenticator
Constructor and Description |
---|
BasicAuthenticator(String username,
char[] password)
Create a Basic Authenticator.
|
BasicAuthenticator(String username,
String password)
Deprecated.
Use
BasicAuthenticator(String, char[]) |
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Deprecated.
Use
getPasswordChars(char[]) |
char[] |
getPasswordChars()
Get the password.
|
String |
getUsername() |
@Deprecated public BasicAuthenticator(@NonNull String username, @NonNull String password)
BasicAuthenticator(String, char[])
username
- password
- public BasicAuthenticator(@NonNull String username, @NonNull char[] password)
@NonNull public String getUsername()
@Deprecated @NonNull public String getPassword()
getPasswordChars(char[])
@NonNull public char[] getPasswordChars()