public class ChallengeResponseHeader extends Header
Modifier and Type | Field and Description |
---|---|
protected static byte |
CHALLENGE |
protected long |
hash |
protected byte[] |
payload |
protected static byte |
RESPONSE |
protected byte |
type |
Constructor and Description |
---|
ChallengeResponseHeader() |
ChallengeResponseHeader(byte[] payload) |
ChallengeResponseHeader(long hash) |
Modifier and Type | Method and Description |
---|---|
java.util.function.Supplier<? extends Header> |
create()
Creates an instance of the class implementing this interface
|
short |
getMagicId()
Returns the magic-ID.
|
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize()
Returns the size (in bytes) of the marshalled object
|
java.lang.String |
toString() |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected static final byte CHALLENGE
protected static final byte RESPONSE
protected byte type
protected byte[] payload
protected long hash
public ChallengeResponseHeader()
public ChallengeResponseHeader(byte[] payload)
public ChallengeResponseHeader(long hash)
public short getMagicId()
Header
getMagicId
in class Header
public java.util.function.Supplier<? extends Header> create()
Constructable
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
java.lang.Exception
public int serializedSize()
SizeStreamable
Copyright © 1998-2020 Red Hat. All Rights Reserved.