public static class DH_KEY_EXCHANGE.DhHeader extends Header
Modifier and Type | Field and Description |
---|---|
protected byte[] |
dh_key |
protected byte[] |
encrypted_secret_key |
protected byte[] |
secret_key_version |
protected DH_KEY_EXCHANGE.Type |
type |
Constructor and Description |
---|
DhHeader() |
Modifier and Type | Method and Description |
---|---|
Supplier<? extends Header> |
create()
Creates an instance of the class implementing this interface
|
static DH_KEY_EXCHANGE.DhHeader |
createSecretKeyRequest(byte[] dh_key) |
static DH_KEY_EXCHANGE.DhHeader |
createSecretKeyResponse(byte[] dh_pub_key,
byte[] encrypted_secret_key,
byte[] version) |
byte[] |
dhKey() |
byte[] |
encryptedSecret() |
short |
getMagicId()
Returns the magic-ID.
|
void |
readFrom(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
|
String |
toString() |
byte[] |
version() |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected DH_KEY_EXCHANGE.Type type
protected byte[] dh_key
protected byte[] encrypted_secret_key
protected byte[] secret_key_version
public static DH_KEY_EXCHANGE.DhHeader createSecretKeyRequest(byte[] dh_key)
public static DH_KEY_EXCHANGE.DhHeader createSecretKeyResponse(byte[] dh_pub_key, byte[] encrypted_secret_key, byte[] version)
public Supplier<? extends Header> create()
Constructable
public short getMagicId()
Header
getMagicId
in class Header
public byte[] dhKey()
public byte[] encryptedSecret()
public byte[] version()
public int serializedSize()
SizeStreamable
public void writeTo(DataOutput out) throws Exception
Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
Exception
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.