Class PlainTextAuthProviderBase.PlainTextAuthenticator

    • Method Detail

      • evaluateChallengeSync

        @Nullable
        public ByteBuffer evaluateChallengeSync​(@Nullable
                                                ByteBuffer challenge)
        Description copied from interface: SyncAuthenticator
        Evaluate a challenge received from the server.

        SyncAuthenticator.evaluateChallenge(ByteBuffer) calls this and wraps the result in an immediately completed future.

        Parameters:
        challenge - the server's SASL challenge; may be null.
        Returns:
        The updated SASL token (which may be null to indicate the client requires no further action). 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.