Package org.jgroups.protocols
Class DH_KEY_EXCHANGE.DhHeader
- java.lang.Object
-
- org.jgroups.Header
-
- org.jgroups.protocols.DH_KEY_EXCHANGE.DhHeader
-
- All Implemented Interfaces:
Constructable<Header>,SizeStreamable,Streamable
- Enclosing class:
- DH_KEY_EXCHANGE
public static class DH_KEY_EXCHANGE.DhHeader extends Header
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]dh_keyprotected byte[]encrypted_secret_keyprotected byte[]secret_key_versionprotected DH_KEY_EXCHANGE.Typetype
-
Constructor Summary
Constructors Constructor Description DhHeader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Supplier<? extends Header>create()Creates an instance of the class implementing this interfacestatic DH_KEY_EXCHANGE.DhHeadercreateSecretKeyRequest(byte[] dh_key)static DH_KEY_EXCHANGE.DhHeadercreateSecretKeyResponse(byte[] dh_pub_key, byte[] encrypted_secret_key, byte[] version)byte[]dhKey()byte[]encryptedSecret()shortgetMagicId()Returns the magic-ID.voidreadFrom(java.io.DataInput in)Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedintserializedSize()Returns the size (in bytes) of the marshalled objectjava.lang.StringtoString()byte[]version()voidwriteTo(java.io.DataOutput out)Write the entire state of the current object (including superclasses) to outstream.
-
-
-
Field Detail
-
type
protected DH_KEY_EXCHANGE.Type type
-
dh_key
protected byte[] dh_key
-
encrypted_secret_key
protected byte[] encrypted_secret_key
-
secret_key_version
protected byte[] secret_key_version
-
-
Method Detail
-
createSecretKeyRequest
public static DH_KEY_EXCHANGE.DhHeader createSecretKeyRequest(byte[] dh_key)
-
createSecretKeyResponse
public static DH_KEY_EXCHANGE.DhHeader createSecretKeyResponse(byte[] dh_pub_key, byte[] encrypted_secret_key, byte[] version)
-
create
public java.util.function.Supplier<? extends Header> create()
Description copied from interface:ConstructableCreates an instance of the class implementing this interface
-
getMagicId
public short getMagicId()
Description copied from class:HeaderReturns the magic-ID. If defined in jg-magic-map.xml, the IDs need to be the same- Specified by:
getMagicIdin classHeader
-
dhKey
public byte[] dhKey()
-
encryptedSecret
public byte[] encryptedSecret()
-
version
public byte[] version()
-
serializedSize
public int serializedSize()
Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object
-
writeTo
public void writeTo(java.io.DataOutput out) throws java.io.IOExceptionDescription copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Throws:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput in) throws java.io.IOExceptionDescription copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
java.io.IOException
-
-