public abstract class PlainTextTokenSaslNegotiator extends Object implements Authenticator.SaslNegotiator
| Modifier and Type | Field and Description |
|---|---|
protected AuthenticationService |
authentication |
protected AuthenticationSubject |
authenticationSubject |
protected int |
tokenMaxLength |
protected String |
tokenUsername |
| Constructor and Description |
|---|
PlainTextTokenSaslNegotiator(AuthenticationService authentication,
Authenticator.SaslNegotiator wrapped,
String tokenUsername,
int tokenMaxLength) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
attemptTokenAuthentication(byte[] clientResponse) |
static Credentials |
decodeCredentials(byte[] bytes)
Copy of the private method:
org.apache.cassandra.auth.PasswordAuthenticator.PlainTextSaslAuthenticator#decodeCredentials(byte[]).
|
byte[] |
evaluateResponse(byte[] clientResponse) |
AuthenticatedUser |
getAuthenticatedUser() |
boolean |
isComplete() |
protected final AuthenticationService authentication
protected AuthenticationSubject authenticationSubject
protected final String tokenUsername
protected final int tokenMaxLength
public PlainTextTokenSaslNegotiator(AuthenticationService authentication, Authenticator.SaslNegotiator wrapped, String tokenUsername, int tokenMaxLength)
public byte[] evaluateResponse(byte[] clientResponse)
throws AuthenticationException
evaluateResponse in interface Authenticator.SaslNegotiatorAuthenticationExceptionpublic boolean isComplete()
isComplete in interface Authenticator.SaslNegotiatorpublic AuthenticatedUser getAuthenticatedUser() throws AuthenticationException
getAuthenticatedUser in interface Authenticator.SaslNegotiatorAuthenticationExceptionpublic abstract boolean attemptTokenAuthentication(byte[] clientResponse)
public static Credentials decodeCredentials(byte[] bytes) throws AuthenticationException
bytes - encoded credentials string sent by the clientAuthenticationException - if either the authnId or password is nullCopyright © 2022. All rights reserved.