A B C D E G I K M N P R S T U V W

A

algorithm - Variable in class P2PWNC.P2PWNCKey
 
algorithm - Variable in class P2PWNC.P2PWNCSignature
 

B

B64Data - class P2PWNC.B64Data.
This class represents a byte array together with its length.
B64Data(byte[], int) - Constructor for class P2PWNC.B64Data
Constructs a new B64Data object.
Base64 - class P2PWNC.Base64.
This class provides Base64 encoding and decoding functionality, according to the RCF 2045 specifications.
Base64() - Constructor for class P2PWNC.Base64
Default constructor.
Base64(int) - Constructor for class P2PWNC.Base64
Sets nLineLength to the specified parameter.
b64Encoder - Variable in class P2PWNC.P2PWNCConverter
Base64 encoder/decoder.
bits - Variable in class P2PWNC.P2PWNCKey
 
bits - Variable in class P2PWNC.P2PWNCSignature
 

C

CalculateB64Size(int) - Method in class P2PWNC.Base64
Calculates the size of the resulting base64 encoded string.
CalculateRawSize(String) - Method in class P2PWNC.Base64
Calculates the size of the raw byte array that will result from a dacoding operation performed on the given string.
clientCert - Variable in class P2PWNC.P2PWNCClient
Consumer (client) certificate.
clientPrivKey - Variable in class P2PWNC.P2PWNCClient
Consumer (client) secret key.
clientSocket - Variable in class P2PWNC.P2PWNCClient
Socket through which the communication to the service provider is performed.
connectToP2PWNCServer(String, int) - Method in class P2PWNC.P2PWNCClient
Connects to the service provider.
constructConnMsg(P2PWNCCert) - Method in class P2PWNC.P2PWNCConverter
Constructs a CONN text message.
constructReceipt(P2PWNCCert, P2PWNCKey, int, int, P2PWNCKey, boolean) - Method in class P2PWNC.P2PWNCCrypt
Constructs and signs a P2PWNC receipt.
consumerCert - Variable in class P2PWNC.P2PWNCReceipt
 
converter - Variable in class P2PWNC.P2PWNCClient
Instance of the P2PWNCConverter class, responsible for conversions of messages from wire (text) to internal representation.
cryptHandler - Variable in class P2PWNC.P2PWNCClient
Instance of the P2PWNCCrypt class, responsible for cryptograhic operations performed by the client (such as receipt signing).
cryptMessage(byte[], P2PWNCKey, int, boolean) - Method in class P2PWNC.P2PWNCCrypt
Encrypts or decrypts a message using a specified P2PWNCKey ("key" parameter).
cryptTest(P2PWNCKey, P2PWNCKey, byte[]) - Static method in class P2PWNC.P2PWNCCrypt
 
currentWeight - Variable in class P2PWNC.P2PWNCClient
Current weight of a provider-consumer session (that is the amount of traffic initiated by/forwarded to the consumer.

D

DecodeBlock(byte[], byte[]) - Method in class P2PWNC.Base64
Decodes a 4-byte base64-encoded block to raw bytes.
DecodeData(String, byte[]) - Method in class P2PWNC.Base64
Decodes the base64 input data.
DecodeFile(String, String) - Method in class P2PWNC.Base64
Decodes a base64 encoded input file.
data - Variable in class P2PWNC.B64Data
The byte array holding the actual data.
data - Variable in class P2PWNC.P2PWNCKey
 
data - Variable in class P2PWNC.P2PWNCSignature
 
datalen - Variable in class P2PWNC.B64Data
Length of the data byte array.
datalen - Variable in class P2PWNC.P2PWNCKey
 
datalen - Variable in class P2PWNC.P2PWNCSignature
 

E

EncTable - Static variable in class P2PWNC.Base64
Encoding table.
EncodeBlock(byte[], byte[], int) - Method in class P2PWNC.Base64
Encodes a 3-byte block to a 4-byte base64-encoded block.
EncodeData(byte[], int) - Method in class P2PWNC.Base64
Base64-encodes a raw byte array of datalen length.
EncodeFile(String, String) - Method in class P2PWNC.Base64
Base64-encodes the input file

G

getAlgorithm() - Method in class P2PWNC.P2PWNCKey
 
getAlgorithm() - Method in class P2PWNC.P2PWNCSignature
 
getBits() - Method in class P2PWNC.P2PWNCKey
 
getBits() - Method in class P2PWNC.P2PWNCSignature
 
getConsumerCert() - Method in class P2PWNC.P2PWNCReceipt
 
getData() - Method in class P2PWNC.B64Data
Returns the "data" field.
getData() - Method in class P2PWNC.P2PWNCKey
 
getData() - Method in class P2PWNC.P2PWNCSignature
 
getDatalen() - Method in class P2PWNC.B64Data
Returns the "datalen" field.
getDatalen() - Method in class P2PWNC.P2PWNCKey
 
getDatalen() - Method in class P2PWNC.P2PWNCSignature
 
getMessageType() - Method in class P2PWNC.P2PWNCMessage
 
getProviderKey() - Method in class P2PWNC.P2PWNCRREQMsgInfo
Returns the public key of the service provider of a P2PWNCRREQMsgInfo object.
getProviderPublicKey() - Method in class P2PWNC.P2PWNCReceipt
 
getPublicKey() - Method in class P2PWNC.P2PWNCKeyPair
 
getReceiptSignature() - Method in class P2PWNC.P2PWNCReceipt
 
getSecretKey() - Method in class P2PWNC.P2PWNCKeyPair
 
getTeamPublicKey() - Method in class P2PWNC.P2PWNCCert
Returns the team's public key.
getTeamSignature() - Method in class P2PWNC.P2PWNCCert
Retirns the team's signature.
getText() - Method in class P2PWNC.P2PWNCMessage
 
getTimestamp() - Method in class P2PWNC.P2PWNCReceipt
 
getUserPublicKey() - Method in class P2PWNC.P2PWNCCert
Returns the user's public key.
getWeight() - Method in class P2PWNC.P2PWNCRREQMsgInfo
Returns the value of the weight field of a P2PWNCRREQMsgInfo object.
getWeight() - Method in class P2PWNC.P2PWNCReceipt
 

I

internalToKey(P2PWNCKey, boolean) - Method in class P2PWNC.P2PWNCCrypt
Constructs a Key object from the specified P2PWNCKey input parameter.
internalToKeySpec(P2PWNCKey, boolean) - Method in class P2PWNC.P2PWNCCrypt
Converts from internal key representation to Java KeySpec.
ioHandler - Variable in class P2PWNC.P2PWNCClient
Instance of the P2PWNCio class, responsible for i/o operations, such as reading keys and certificates, reading/writing messages from/to the network, etc.

K

keyDataToBinaryFile(String) - Method in class P2PWNC.P2PWNCKey
 

M

main(String[]) - Static method in class P2PWNC.Base64
 
main(String[]) - Static method in class P2PWNC.P2PWNCClient
 
main(String[]) - Static method in class P2PWNC.P2PWNCConverter
 
mtype - Variable in class P2PWNC.P2PWNCMessage
 

N

nLineLength - Variable in class P2PWNC.Base64
Length of the lines of the base64 encoded text.

P

P2PWNC - package P2PWNC
 
P2PWNCCert - class P2PWNC.P2PWNCCert.
This class represents a P2PWNC user certificate, which is issued by a team for one of its members.
P2PWNCCert() - Constructor for class P2PWNC.P2PWNCCert
Constructs a certificate with null fields.
P2PWNCCert(P2PWNCKey, P2PWNCKey, P2PWNCSignature) - Constructor for class P2PWNC.P2PWNCCert
Constructs a certificate with the specified parameters as the team's public key, user's public key and team's signature.
P2PWNCClient - class P2PWNC.P2PWNCClient.
This class provides the functionality of a P2PWNC protocol client program.
P2PWNCClient(String, String) - Constructor for class P2PWNC.P2PWNCClient
Constructs a P2PWNCClient object, reading the client certificate and secret key from files.
P2PWNCClientFunc() - Method in class P2PWNC.P2PWNCClient
Main client function.
P2PWNCConverter - class P2PWNC.P2PWNCConverter.
This class provides conversion functionality from the internal representation to text messages and vice versa.
P2PWNCConverter() - Constructor for class P2PWNC.P2PWNCConverter
Constructs a new P2PWNCConverter object, initializing its b64encoder field.
P2PWNCCrypt - class P2PWNC.P2PWNCCrypt.
This class provides cryptographic functionality, that is methods for performing encryption, decryption, digital signing and verification, etc.
P2PWNCCrypt() - Constructor for class P2PWNC.P2PWNCCrypt
Default constructor (does nothing in special, since there are no fields to initialize)
P2PWNCKey - class P2PWNC.P2PWNCKey.
This class represents a P2PWNC public or secret key.
P2PWNCKey() - Constructor for class P2PWNC.P2PWNCKey
 
P2PWNCKey(int, int, int) - Constructor for class P2PWNC.P2PWNCKey
 
P2PWNCKeyPair - class P2PWNC.P2PWNCKeyPair.
This class represents a public/secret key pair.
P2PWNCKeyPair(P2PWNCKey, P2PWNCKey) - Constructor for class P2PWNC.P2PWNCKeyPair
 
P2PWNCKeyPair() - Constructor for class P2PWNC.P2PWNCKeyPair
 
P2PWNCMessage - class P2PWNC.P2PWNCMessage.
This class represents a P2PWNC protocol text message.
P2PWNCMessage() - Constructor for class P2PWNC.P2PWNCMessage
 
P2PWNCMessage(int, String) - Constructor for class P2PWNC.P2PWNCMessage
 
P2PWNCProto - class P2PWNC.P2PWNCProto.
Abstract class that includes the P2PWNC protocol constants, such as message types.
P2PWNCProto() - Constructor for class P2PWNC.P2PWNCProto
 
P2PWNCRREQMsgInfo - class P2PWNC.P2PWNCRREQMsgInfo.
This class represents a P2PWNC RREQ protocol message.
P2PWNCRREQMsgInfo(P2PWNCKey, int) - Constructor for class P2PWNC.P2PWNCRREQMsgInfo
Constructs a P2PWNCRREQMsgInfo object with the specified provider key and weight field values.
P2PWNCReceipt - class P2PWNC.P2PWNCReceipt.
This class represents a P2PWNC protocol receipt.
P2PWNCReceipt() - Constructor for class P2PWNC.P2PWNCReceipt
 
P2PWNCReceipt(P2PWNCCert, P2PWNCKey, int, int, P2PWNCSignature) - Constructor for class P2PWNC.P2PWNCReceipt
 
P2PWNCSignature - class P2PWNC.P2PWNCSignature.
This class represents a P2PWNC signature.
P2PWNCSignature() - Constructor for class P2PWNC.P2PWNCSignature
 
P2PWNCSignature(int, int, int) - Constructor for class P2PWNC.P2PWNCSignature
 
P2PWNCSignature(int, int, byte[]) - Constructor for class P2PWNC.P2PWNCSignature
 
P2PWNC_ALGO_ECC - Static variable in class P2PWNC.P2PWNCProto
Elliptic Curve cryptosystem identifier.
P2PWNC_ALGO_RSA - Static variable in class P2PWNC.P2PWNCProto
RSA cryptosystem identifier.
P2PWNC_MSG_CACK - Static variable in class P2PWNC.P2PWNCProto
This message type corresponds to a P2PWNC "connection acknowledgement" message (CACK).
P2PWNC_MSG_CONN - Static variable in class P2PWNC.P2PWNCProto
This message type corresponds to a P2PWNC "connect" message (CONN).
P2PWNC_MSG_RCPT - Static variable in class P2PWNC.P2PWNCProto
This message type corresponds to a P2PWNC "receipt" message (RCPT).
P2PWNC_MSG_RREQ - Static variable in class P2PWNC.P2PWNCProto
This message type corresponds to a P2PWNC "receipt request" message (RREQ).
P2PWNC_MSG_TEAR - Static variable in class P2PWNC.P2PWNCProto
This message type corresponds to a P2PWNC "tear connection" message (TEAR).
P2PWNC_SERVER_PORT - Static variable in class P2PWNC.P2PWNCProto
The standard port a service provider listens for client messages, as specified by the P2PWNC protocol).
P2PWNCio - class P2PWNC.P2PWNCio.
This class provides i/o functionality.
P2PWNCio() - Constructor for class P2PWNC.P2PWNCio
 
parseCACKMsg(String) - Method in class P2PWNC.P2PWNCConverter
Parses a CACK text message.
parseRREQMsg(String) - Method in class P2PWNC.P2PWNCConverter
Parses an RREQ text message.
printUsage() - Static method in class P2PWNC.P2PWNCClient
 
providerKey - Variable in class P2PWNC.P2PWNCClient
Service provider public key.
providerKey - Variable in class P2PWNC.P2PWNCRREQMsgInfo
Service provider's public key.
providerPublicKey - Variable in class P2PWNC.P2PWNCReceipt
 
publicKey - Variable in class P2PWNC.P2PWNCKeyPair
 

R

readCert(String) - Method in class P2PWNC.P2PWNCio
 
readKey(String) - Method in class P2PWNC.P2PWNCio
 
readKeyBin(String, int) - Method in class P2PWNC.P2PWNCio
 
readMessage(Socket) - Method in class P2PWNC.P2PWNCio
 
receiptSignature - Variable in class P2PWNC.P2PWNCReceipt
 
receiptToTextMsg(P2PWNCReceipt) - Method in class P2PWNC.P2PWNCConverter
Converts a P2PWNCReceipt object to an RCPT text message to be sent to the service provider.
reverseByteOrder(byte[]) - Static method in class P2PWNC.P2PWNCCrypt
Reverses the order of the bytes in the input byte array.

S

ShouldBeIgnored(char) - Method in class P2PWNC.Base64
Returns true if c is a character that should be ignored during the decoding process (that is, tab, space, cr, lf)
secretKey - Variable in class P2PWNC.P2PWNCKeyPair
 
sendTextMsg(Socket, String) - Method in class P2PWNC.P2PWNCio
 
serializeReceiptInfo(P2PWNCCert, P2PWNCKey, int, int) - Method in class P2PWNC.P2PWNCCrypt
Serializes the information contained in a P2PWNC receipt.
serverAddr - Variable in class P2PWNC.P2PWNCClient
Internet address of the service provider.
sessionTimestamp - Variable in class P2PWNC.P2PWNCClient
Session timestamp.
setAlgorithm(int) - Method in class P2PWNC.P2PWNCKey
 
setAlgorithm(int) - Method in class P2PWNC.P2PWNCSignature
 
setBits(int) - Method in class P2PWNC.P2PWNCKey
 
setBits(int) - Method in class P2PWNC.P2PWNCSignature
 
setConsumerCert(P2PWNCCert) - Method in class P2PWNC.P2PWNCReceipt
 
setData(byte[]) - Method in class P2PWNC.B64Data
Sets the object's "data" field to "data"
setData(byte[]) - Method in class P2PWNC.P2PWNCKey
 
setData(byte[]) - Method in class P2PWNC.P2PWNCSignature
 
setDatalen(int) - Method in class P2PWNC.B64Data
Sets the object's "datalen" field to "datalen"
setMessageType(int) - Method in class P2PWNC.P2PWNCMessage
 
setProviderPublicKey(P2PWNCKey) - Method in class P2PWNC.P2PWNCReceipt
 
setPublicKey(P2PWNCKey) - Method in class P2PWNC.P2PWNCKeyPair
 
setReceiptSignature(P2PWNCSignature) - Method in class P2PWNC.P2PWNCReceipt
 
setSecretKey(P2PWNCKey) - Method in class P2PWNC.P2PWNCKeyPair
 
setTeamPublicKey(P2PWNCKey) - Method in class P2PWNC.P2PWNCCert
Sets the team's public key to the specified parameter.
setTeamSignature(P2PWNCSignature) - Method in class P2PWNC.P2PWNCCert
Sets the team signature to the specified parameter.
setText(String) - Method in class P2PWNC.P2PWNCMessage
 
setTimestamp(int) - Method in class P2PWNC.P2PWNCReceipt
 
setUserPublicKey(P2PWNCKey) - Method in class P2PWNC.P2PWNCCert
Sets the user's public key to the specified parameter.
setWeight(int) - Method in class P2PWNC.P2PWNCReceipt
 
signMessage(P2PWNCKey, byte[], boolean) - Method in class P2PWNC.P2PWNCCrypt
Signs a message using the specified key.
signedBytesToBigInteger(byte[]) - Static method in class P2PWNC.P2PWNCio
 
signedBytesToBigInteger2(byte[]) - Static method in class P2PWNC.P2PWNCio
 

T

TranslateB64(String, int) - Method in class P2PWNC.Base64
Reads base64-encoded data, removes blank/carriage return/linefeed characters
teamPublicKey - Variable in class P2PWNC.P2PWNCCert
Issuer team's public key.
teamSignature - Variable in class P2PWNC.P2PWNCCert
Signature of the issuer team (the team signs the two public keys using its secret key)
text - Variable in class P2PWNC.P2PWNCMessage
 
textMsgToReceipt(String) - Method in class P2PWNC.P2PWNCConverter
Parses an RCPT text message to the correspondent P2PWNCReceipt object.
timestamp - Variable in class P2PWNC.P2PWNCReceipt
 

U

userPublicKey - Variable in class P2PWNC.P2PWNCCert
User's public key.

V

verifySignature(P2PWNCSignature, P2PWNCKey, byte[], boolean) - Method in class P2PWNC.P2PWNCCrypt
Verifies a P2PWNCSignature.

W

weight - Variable in class P2PWNC.P2PWNCRREQMsgInfo
Weight of the next receipt.
weight - Variable in class P2PWNC.P2PWNCReceipt
 

A B C D E G I K M N P R S T U V W