Class InvalidMagicNumberException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hdfs.protocol.datatransfer.sasl.InvalidMagicNumberException
All Implemented Interfaces:
Serializable

@Private public class InvalidMagicNumberException extends IOException
Indicates that SASL protocol negotiation expected to read a pre-defined magic number, but the expected value was not seen.
See Also:
  • Constructor Details

    • InvalidMagicNumberException

      public InvalidMagicNumberException(int magicNumber, boolean handshake4Encryption)
      Creates a new InvalidMagicNumberException.
      Parameters:
      magicNumber - expected value
  • Method Details

    • isHandshake4Encryption

      public boolean isHandshake4Encryption()
      Return true if it's handshake for encryption
      Returns:
      boolean true if it's handshake for encryption