Class MechanismMismatchException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MechanismMismatchException
    extends javax.security.sasl.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 Summary

      Constructors 
      Constructor Description
      MechanismMismatchException​(java.lang.String detail)
      Creates an exception with a detail message.
      MechanismMismatchException​(java.lang.String detail, java.lang.String[] mechanisms)
      Creates an exception with a detail message for offered mechanisms.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getOfferedMechanisms()
      Gets the names of the SASL mechanisms offered by the server.
      • Methods inherited from class javax.security.sasl.SaslException

        getCause, initCause, toString
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MechanismMismatchException

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

        public MechanismMismatchException​(java.lang.String detail,
                                          java.lang.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 java.lang.String[] getOfferedMechanisms()
        Gets the names of the SASL mechanisms offered by the server.
        Returns:
        The mechanisms.