is.logi.crypto.protocols
Class 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

Fields inherited from class is.logi.crypto.Crypto
BIT, cdsPath, keySource, NIBBLE, primeCertainty, random
 
Constructor Summary
EncryptedKeyExClient(CipherKey key, Key sessionKey)
          Create a new EncryptedKeyExClient object.
 
Method Summary
 byte[] message(byte[] received)
          Get the next message in the protocol.
 
Methods inherited from class is.logi.crypto.protocols.EncryptedKeyEx
completed, sessionKey
 
Methods inherited from class is.logi.crypto.Crypto
binString, binString, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, readInt, writeBytes, writeBytes, writeInt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.


Copyright 1997-1999 Logi Ragnarsson