Class MechanismMismatchException

  • All Implemented Interfaces:
    Serializable

    public class MechanismMismatchException
    extends SaslException
    Indicates that a SASL handshake has failed because the client does not support any of the mechanisms offered by the server.
    See Also:
    Serialized Form
    • Constructor Detail

      • MechanismMismatchException

        public MechanismMismatchException​(String detail)
        Creates an exception with a detail message.
        Parameters:
        detail - A message providing details about the cause of the problem.
      • MechanismMismatchException

        public MechanismMismatchException​(String detail,
                                          String[] mechanisms)
        Creates an exception with a detail message for offered mechanisms.
        Parameters:
        detail - A message providing details about the cause of the problem.
        mechanisms - The names of the SASL mechanisms offered by the server.
    • Method Detail

      • getOfferedMechanisms

        public String[] getOfferedMechanisms()
        Gets the names of the SASL mechanisms offered by the server.
        Returns:
        The mechanisms.