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
Indicates that SASL protocol negotiation expected to read a pre-defined magic
number, but the expected value was not seen.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidMagicNumberException(int magicNumber, boolean handshake4Encryption) Creates a new InvalidMagicNumberException. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if it's handshake for encryptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
-