public static class DemoToken.DemoHeader extends Header
| 限定符和类型 | 字段和说明 |
|---|---|
protected static byte |
CHALLENGE |
protected long |
hash |
protected byte[] |
payload |
protected static byte |
RESPONSE |
protected byte |
type |
| 构造器和说明 |
|---|
DemoToken.DemoHeader() |
DemoToken.DemoHeader(byte[] payload) |
DemoToken.DemoHeader(long hash) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 DemoToken.DemoHeader()
public DemoToken.DemoHeader(byte[] payload)
public DemoToken.DemoHeader(long hash)
public void writeTo(java.io.DataOutput out)
throws java.lang.Exception
Streamablejava.lang.Exceptionpublic void readFrom(java.io.DataInput in)
throws java.lang.Exception
Streamablejava.lang.Exceptionpublic int size()
Header