All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.logi.crypto.protocols.EncryptedKeyExClient

java.lang.Object
   |
   +----is.logi.crypto.Crypto
           |
           +----is.logi.crypto.protocols.EncryptedKeyEx
                   |
                   +----is.logi.crypto.protocols.EncryptedKeyExClient

public class EncryptedKeyExClient
extends EncryptedKeyEx
implements NoninterKeyExClient
Exchange keys by sending an encrypted key from this class to the corresponding EncryptedKeyExServer.

Author:
Logi Ragnarsson (logir@hi.is)
See Also:
EncryptedKeyExServer

Constructor Index

 o EncryptedKeyExClient(CipherKey, Key)
Create a new EncryptedKeyExClient object.

Method Index

 o message(byte[])
Get the next message in the protocol.

Constructors

 o EncryptedKeyExClient
 public EncryptedKeyExClient(CipherKey key,
                             Key sessionKey)
Create a new EncryptedKeyExClient object. It uses key to encrypt sessionKey and then sneds it to the server.

Methods

 o message
 public byte[] message(byte received[]) throws ProtocolException
Get the next message in the protocol.

received is the last message received form the server and has not yet been sent to the client.

The returned value is the next message to send to the server or null if no more messages need to be sent and the protocol is terminated.

Throws: ProtocolException
if a problem arises with the protocol.

All Packages  Class Hierarchy  This Package  Previous  Next  Index