P2PWNC
Class P2PWNCSignature

java.lang.Object
  extended byP2PWNC.P2PWNCProto
      extended byP2PWNC.P2PWNCSignature

class P2PWNCSignature
extends P2PWNCProto

This class represents a P2PWNC signature. Its fields are identical to those of the P2PWNCKey class.

Version:
0.0.1
Author:
Pantelis Frangoudis, Elias Efstathiou

Field Summary
protected  int algorithm
           
protected  int bits
           
protected  byte[] data
           
protected  int datalen
           
static int P2PWNC_ALGO_ECC
          Elliptic Curve cryptosystem identifier.
static int P2PWNC_ALGO_RSA
          RSA cryptosystem identifier.
static int P2PWNC_MSG_CACK
          This message type corresponds to a P2PWNC "connection acknowledgement" message (CACK).
static int P2PWNC_MSG_CONN
          This message type corresponds to a P2PWNC "connect" message (CONN).
static int P2PWNC_MSG_RCPT
          This message type corresponds to a P2PWNC "receipt" message (RCPT).
static int P2PWNC_MSG_RREQ
          This message type corresponds to a P2PWNC "receipt request" message (RREQ).
static int P2PWNC_MSG_TEAR
          This message type corresponds to a P2PWNC "tear connection" message (TEAR).
static int P2PWNC_SERVER_PORT
          The standard port a service provider listens for client messages, as specified by the P2PWNC protocol).
 
Constructor Summary
(package private) P2PWNCSignature()
           
(package private) P2PWNCSignature(int algorithm, int bits, byte[] data)
           
(package private) P2PWNCSignature(int algorithm, int bits, int datalen)
           
 
Method Summary
 int getAlgorithm()
           
 int getBits()
           
 byte[] getData()
           
 int getDatalen()
           
 void setAlgorithm(int algorithm)
           
 void setBits(int bits)
           
 void setData(byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algorithm

protected int algorithm

bits

protected int bits

datalen

protected int datalen

data

protected byte[] data

P2PWNC_SERVER_PORT

public static final int P2PWNC_SERVER_PORT
The standard port a service provider listens for client messages, as specified by the P2PWNC protocol).

See Also:
Constant Field Values

P2PWNC_ALGO_RSA

public static final int P2PWNC_ALGO_RSA
RSA cryptosystem identifier.

See Also:
Constant Field Values

P2PWNC_ALGO_ECC

public static final int P2PWNC_ALGO_ECC
Elliptic Curve cryptosystem identifier.

See Also:
Constant Field Values

P2PWNC_MSG_RCPT

public static final int P2PWNC_MSG_RCPT
This message type corresponds to a P2PWNC "receipt" message (RCPT).

See Also:
Constant Field Values

P2PWNC_MSG_CONN

public static final int P2PWNC_MSG_CONN
This message type corresponds to a P2PWNC "connect" message (CONN).

See Also:
Constant Field Values

P2PWNC_MSG_RREQ

public static final int P2PWNC_MSG_RREQ
This message type corresponds to a P2PWNC "receipt request" message (RREQ).

See Also:
Constant Field Values

P2PWNC_MSG_CACK

public static final int P2PWNC_MSG_CACK
This message type corresponds to a P2PWNC "connection acknowledgement" message (CACK).

See Also:
Constant Field Values

P2PWNC_MSG_TEAR

public static final int P2PWNC_MSG_TEAR
This message type corresponds to a P2PWNC "tear connection" message (TEAR).

See Also:
Constant Field Values
Constructor Detail

P2PWNCSignature

P2PWNCSignature()

P2PWNCSignature

P2PWNCSignature(int algorithm,
                int bits,
                int datalen)

P2PWNCSignature

P2PWNCSignature(int algorithm,
                int bits,
                byte[] data)
Method Detail

getAlgorithm

public int getAlgorithm()

getBits

public int getBits()

getDatalen

public int getDatalen()

getData

public byte[] getData()

setAlgorithm

public void setAlgorithm(int algorithm)

setBits

public void setBits(int bits)

setData

public void setData(byte[] data)