Class MechanismMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
javax.security.sasl.SaslException
org.apache.qpid.protonj2.engine.sasl.MechanismMismatchException
- All Implemented Interfaces:
Serializable
Indicates that a SASL handshake has failed because the client does not
support any of the mechanisms offered by the server.
- See Also:
-
Constructor Summary
ConstructorDescriptionMechanismMismatchException
(String detail) Creates an exception with a detail message.MechanismMismatchException
(String detail, String[] mechanisms) Creates an exception with a detail message for offered mechanisms. -
Method Summary
Modifier and TypeMethodDescriptionString[]
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
-
Constructor Details
-
MechanismMismatchException
Creates an exception with a detail message.- Parameters:
detail
- A message providing details about the cause of the problem.
-
MechanismMismatchException
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 Details
-
getOfferedMechanisms
Gets the names of the SASL mechanisms offered by the server.- Returns:
- The mechanisms.
-