Package org.jgroups.protocols
Class EncryptHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.EncryptHeader
- All Implemented Interfaces:
Constructable<Header>,SizeStreamable,Streamable
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final byteprotected byte[]protected booleanprotected Addressprotected byteprotected byte[] -
Constructor Summary
ConstructorsConstructorDescriptionEncryptHeader(byte[] version) EncryptHeader(byte type, byte[] version) EncryptHeader(byte type, byte[] version, byte[] iv) -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an instance of the class implementing this interfaceshortReturns the magic-ID.byte[]iv()booleanneedsDeserialization(boolean flag) voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedintReturns the size (in bytes) of the marshalled objectserver()toString()bytetype()protected static StringtypeToString(byte type) byte[]version()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
INSTALL_KEYS
public static final byte INSTALL_KEYS- See Also:
-
FETCH_SHARED_KEY
public static final byte FETCH_SHARED_KEY- See Also:
-
type
protected byte type -
version
protected byte[] version -
server
-
iv
protected byte[] iv -
needs_deserialization
protected boolean needs_deserialization
-
-
Constructor Details
-
EncryptHeader
public EncryptHeader() -
EncryptHeader
public EncryptHeader(byte type, byte[] version, byte[] iv) -
EncryptHeader
public EncryptHeader(byte type, byte[] version) -
EncryptHeader
public EncryptHeader(byte[] version)
-
-
Method Details
-
type
public byte type() -
version
public byte[] version() -
server
-
iv
public byte[] iv() -
server
-
needsDeserialization
public boolean needsDeserialization() -
needsDeserialization
-
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
-
create
Description copied from interface:ConstructableCreates an instance of the class implementing this interface -
writeTo
Description 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:
IOException
-
readFrom
Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
IOExceptionClassNotFoundException
-
toString
-
serializedSize
public int serializedSize()Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object -
typeToString
-