@ThreadSafe public abstract class BaseDseAuthenticator extends Object implements com.datastax.oss.driver.api.core.auth.SyncAuthenticator
SyncAuthenticator
implementations that want to make use of the
authentication scheme negotiation in DseAuthenticator
.Modifier | Constructor and Description |
---|---|
protected |
BaseDseAuthenticator(String serverAuthenticator) |
Modifier and Type | Method and Description |
---|---|
protected abstract ByteBuffer |
getInitialServerChallenge()
Return a byte buffer containing the expected successful server challenge.
|
protected abstract ByteBuffer |
getMechanism()
Return a byte buffer containing the required SASL mechanism.
|
ByteBuffer |
initialResponseSync() |
void |
onAuthenticationSuccessSync(ByteBuffer token) |
protected BaseDseAuthenticator(@NonNull String serverAuthenticator)
@NonNull protected abstract ByteBuffer getMechanism()
This should be one of:
@NonNull protected abstract ByteBuffer getInitialServerChallenge()
This should be one of:
@Nullable public ByteBuffer initialResponseSync()
initialResponseSync
in interface com.datastax.oss.driver.api.core.auth.SyncAuthenticator
public void onAuthenticationSuccessSync(@Nullable ByteBuffer token)
onAuthenticationSuccessSync
in interface com.datastax.oss.driver.api.core.auth.SyncAuthenticator
Copyright © 2017–2019. All rights reserved.