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:
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.
-
-
-
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.
-
-