public class EncryptHeader extends Header
| Modifier and Type | Field and Description |
|---|---|
static byte |
ENCRYPT |
static byte |
SECRET_KEY_REQ |
static byte |
SECRET_KEY_RSP |
protected byte[] |
signature |
protected byte |
type |
protected byte[] |
version |
| Constructor and Description |
|---|
EncryptHeader() |
EncryptHeader(byte type,
byte[] version) |
| Modifier and Type | Method and Description |
|---|---|
byte |
getType() |
byte[] |
getVersion() |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
byte[] |
signature() |
EncryptHeader |
signature(byte[] s) |
int |
size()
To be implemented by subclasses.
|
String |
toString() |
byte |
type() |
protected static String |
typeToString(byte type) |
byte[] |
version() |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte ENCRYPT
public static final byte SECRET_KEY_REQ
public static final byte SECRET_KEY_RSP
protected byte type
protected byte[] version
protected byte[] signature
public EncryptHeader()
public EncryptHeader(byte type,
byte[] version)
public byte type()
public byte getType()
public byte[] version()
public byte[] getVersion()
public byte[] signature()
public EncryptHeader signature(byte[] s)
public void writeTo(DataOutput out) throws Exception
StreamableExceptionpublic void readFrom(DataInput in) throws Exception
StreamableExceptionpublic int size()
Headerprotected static String typeToString(byte type)
Copyright © 2025 JBoss, a division of Red Hat. All rights reserved.