Class PlainSaslMechanism

java.lang.Object
com.rabbitmq.stream.sasl.PlainSaslMechanism
All Implemented Interfaces:
SaslMechanism

public class PlainSaslMechanism extends Object implements SaslMechanism
The PLAIN SaslMechanism.

This is the default mechanism used.

See Also:
  • Field Details

  • Constructor Details

    • PlainSaslMechanism

      public PlainSaslMechanism()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: SaslMechanism
      The name of the SASL mechanism.
      Specified by:
      getName in interface SaslMechanism
      Returns:
      the name of the SASL mechanism
    • handleChallenge

      public byte[] handleChallenge(byte[] challenge, CredentialsProvider credentialsProvider)
      Description copied from interface: SaslMechanism
      Handle a challenge from the server
      Specified by:
      handleChallenge in interface SaslMechanism
      Parameters:
      challenge - the server challenge
      credentialsProvider - the credentials to use
      Returns:
      the response to the challenge