Interface SaslMechanism

All Known Implementing Classes:
AnonymousSaslMechanism, ExternalSaslMechanism, PlainSaslMechanism

public interface SaslMechanism
Contract to handle SASL challenges sent by a SASL server.
  • Method Summary

    Modifier and Type
    Method
    Description
    The name of the SASL mechanism.
    byte[]
    handleChallenge(byte[] challenge, CredentialsProvider credentialsProvider)
    Handle a challenge from the server
  • Method Details

    • getName

      String getName()
      The name of the SASL mechanism.
      Returns:
      the name of the SASL mechanism
    • handleChallenge

      byte[] handleChallenge(byte[] challenge, CredentialsProvider credentialsProvider)
      Handle a challenge from the server
      Parameters:
      challenge - the server challenge
      credentialsProvider - the credentials to use
      Returns:
      the response to the challenge