Class AuthProvider.TransitionalModePlainTextAuthenticator

  • All Implemented Interfaces:
    Authenticator
    Enclosing interface:
    AuthProvider

    public static class AuthProvider.TransitionalModePlainTextAuthenticator
    extends Object
    Dummy Authenticator that accounts for DSE authentication configured with transitional mode.

    In this situation, the client is allowed to connect without authentication, but DSE would still send an AUTHENTICATE response. This Authenticator handles this situation by sending back a dummy credential.

    • Constructor Detail

      • TransitionalModePlainTextAuthenticator

        public TransitionalModePlainTextAuthenticator()
    • Method Detail

      • initialResponse

        public byte[] initialResponse()
        Description copied from interface: Authenticator
        Obtain an initial response token for initializing the SASL handshake
        Specified by:
        initialResponse in interface Authenticator
        Returns:
        the initial response to send to the server, may be null
      • evaluateChallenge

        public byte[] evaluateChallenge​(byte[] challenge)
        Description copied from interface: Authenticator
        Evaluate a challenge received from the Server. Generally, this method should return null when authentication is complete from the client perspective
        Specified by:
        evaluateChallenge in interface Authenticator
        Parameters:
        challenge - the server's SASL challenge
        Returns:
        updated SASL token, may be null to indicate the client requires no further action
      • onAuthenticationSuccess

        public void onAuthenticationSuccess​(byte[] token)
        Description copied from interface: Authenticator
        Called when authentication is successful with the last information optionally sent by the server.
        Specified by:
        onAuthenticationSuccess in interface Authenticator
        Parameters:
        token - the information sent by the server with the authentication successful message. This will be null if the server sends no particular information on authentication success.