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 SummaryConstructorsConstructorDescriptionMechanismMismatchException(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 SummaryModifier and TypeMethodDescriptionString[]Gets the names of the SASL mechanisms offered by the server.Methods inherited from class javax.security.sasl.SaslExceptiongetCause, initCause, toStringMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
- 
Constructor Details- 
MechanismMismatchExceptionCreates an exception with a detail message.- Parameters:
- detail- A message providing details about the cause of the problem.
 
- 
MechanismMismatchExceptionCreates 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- 
getOfferedMechanismsGets the names of the SASL mechanisms offered by the server.- Returns:
- The mechanisms.
 
 
-