Class BaseDseAuthenticator
- java.lang.Object
-
- com.datastax.dse.driver.api.core.auth.BaseDseAuthenticator
-
- All Implemented Interfaces:
Authenticator,SyncAuthenticator
- Direct Known Subclasses:
DseGssApiAuthProviderBase.GssApiAuthenticator,PlainTextAuthProviderBase.PlainTextAuthenticator
@Deprecated @ThreadSafe public abstract class BaseDseAuthenticator extends Object implements SyncAuthenticator
Deprecated.DSE authentication negotiation is no longer supported.Base class retained for ordinary authentication by existing subclasses.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseDseAuthenticator(String serverAuthenticator)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract ByteBuffergetInitialServerChallenge()Deprecated.protected abstract ByteBuffergetMechanism()Deprecated.ByteBufferinitialResponseSync()Deprecated.Obtain an initial response token for initializing the SASL handshake.voidonAuthenticationSuccessSync(ByteBuffer token)Deprecated.Called when authentication is successful with the last information optionally sent by the server.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.datastax.oss.driver.api.core.auth.SyncAuthenticator
evaluateChallenge, evaluateChallengeSync, initialResponse, onAuthenticationSuccess
-
-
-
-
Constructor Detail
-
BaseDseAuthenticator
protected BaseDseAuthenticator(@NonNull String serverAuthenticator)Deprecated.
-
-
Method Detail
-
getMechanism
@NonNull protected abstract ByteBuffer getMechanism()
Deprecated.
-
getInitialServerChallenge
@NonNull protected abstract ByteBuffer getInitialServerChallenge()
Deprecated.
-
initialResponseSync
@Nullable public ByteBuffer initialResponseSync()
Deprecated.Description copied from interface:SyncAuthenticatorObtain an initial response token for initializing the SASL handshake.SyncAuthenticator.initialResponse()calls this and wraps the result in an immediately completed future.- Specified by:
initialResponseSyncin interfaceSyncAuthenticator- Returns:
- The initial response to send to the server (which may be
null). Note that, if the returned byte buffer is writable, the driver will clear its contents immediately after use (to avoid keeping sensitive information in memory); do not reuse the same buffer across multiple invocations. Alternatively, if the contents are not sensitive, you can make the buffer read-only and safely reuse it.
-
onAuthenticationSuccessSync
public void onAuthenticationSuccessSync(@Nullable ByteBuffer token)Deprecated.Description copied from interface:SyncAuthenticatorCalled when authentication is successful with the last information optionally sent by the server.SyncAuthenticator.onAuthenticationSuccess(ByteBuffer)calls this, and then returns an immediately completed future.- Specified by:
onAuthenticationSuccessSyncin interfaceSyncAuthenticator- Parameters:
token- the information sent by the server with the authentication successful message. This will benullif the server sends no particular information on authentication success.
-
-