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
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 Summary
Constructors Constructor Description MechanismMismatchException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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.
-
-