public static class DemoToken.DemoHeader 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 |
---|
DemoHeader() |
DemoHeader(byte[] payload) |
DemoHeader(long hash) |
Modifier and Type | Method and Description |
---|---|
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 |
size()
To be implemented by subclasses.
|
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 DemoHeader()
public DemoHeader(byte[] payload)
public DemoHeader(long hash)
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 size()
Header
Copyright © 1998-2020 Red Hat. All Rights Reserved.