org.jgroups.protocols

Class ENCRYPT.EncryptHeader

Enclosing Class:
ENCRYPT
Implemented Interfaces:
Externalizable, Streamable

public static class ENCRYPT.EncryptHeader
extends Header
implements Streamable

Field Summary

static short
ENCRYPT
static short
KEY_REQUEST
static short
SECRETKEY
static short
SECRETKEY_READY
static short
SERVER_PUBKEY

Fields inherited from class org.jgroups.Header

HDR_OVERHEAD

Constructor Summary

EncryptHeader()
EncryptHeader(short type)
EncryptHeader(short type, String version)

Method Summary

boolean
equals(Object obj)
protected short
getType()
protected String
getVersion()
void
readExternal(java.io.ObjectInput in)
void
readFrom(DataInputStream in)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
long
size()
String
toString()
void
writeExternal(java.io.ObjectOutput out)
void
writeTo(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.

Methods inherited from class org.jgroups.Header

size, toString

Field Details

ENCRYPT

public static final short ENCRYPT
Field Value:
0

KEY_REQUEST

public static final short KEY_REQUEST
Field Value:
1

SECRETKEY

public static final short SECRETKEY
Field Value:
3

SECRETKEY_READY

public static final short SECRETKEY_READY
Field Value:
4

SERVER_PUBKEY

public static final short SERVER_PUBKEY
Field Value:
2

Constructor Details

EncryptHeader

public EncryptHeader()

EncryptHeader

public EncryptHeader(short type)

EncryptHeader

public EncryptHeader(short type,
                     String version)

Method Details

equals

public boolean equals(Object obj)

getType

protected short getType()
Returns:
Returns the type.

getVersion

protected String getVersion()
Returns:
Returns the version.

readExternal

public void readExternal(java.io.ObjectInput in)
            throws IOException,
                   ClassNotFoundException

readFrom

public void readFrom(DataInputStream in)
            throws IOException,
                   IllegalAccessException,
                   InstantiationException
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
Specified by:
readFrom in interface Streamable

size

public long size()
Overrides:
size in interface Header

toString

public String toString()
Overrides:
toString in interface Header

writeExternal

public void writeExternal(java.io.ObjectOutput out)
            throws IOException

writeTo

public void writeTo(DataOutputStream out)
            throws IOException
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed
Specified by:
writeTo in interface Streamable

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.