public static class PlainTextAuthProviderBase.Credentials extends Object
Constructor and Description |
---|
Credentials(char[] username,
char[] password)
Builds an instance for simple username/password authentication.
|
Credentials(char[] username,
char[] password,
char[] authorizationId)
Builds an instance for username/password authentication, and proxy authentication with the
given authorizationId.
|
Modifier and Type | Method and Description |
---|---|
protected void |
clear()
Clears the credentials from memory when they're no longer needed.
|
char[] |
getAuthenticationId()
Deprecated.
this method only exists for backward compatibility. It is a synonym for
getUsername() , which should be used instead. |
char[] |
getAuthorizationId() |
char[] |
getPassword() |
char[] |
getUsername() |
public Credentials(@NonNull char[] username, @NonNull char[] password, @NonNull char[] authorizationId)
This feature is only available with Datastax Enterprise. If the target server is Apache Cassandra, the authorizationId will be ignored.
public Credentials(@NonNull char[] username, @NonNull char[] password)
@NonNull public char[] getUsername()
@Deprecated @NonNull public char[] getAuthenticationId()
getUsername()
, which should be used instead.@NonNull public char[] getPassword()
@NonNull public char[] getAuthorizationId()
protected void clear()
Copyright © 2017–2020. All rights reserved.