InvalidMagicNumberException (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.protocol.datatransfer.sasl, class: InvalidMagicNumberException

Package org.apache.hadoop.hdfs.protocol.datatransfer.sasl

# 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:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InvalidMagicNumberException(int magicNumber, boolean handshake4Encryption)`
  Creates a new InvalidMagicNumberException.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `isHandshake4Encryption()`
  Return true if it's handshake for encryption

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## 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