is.logi.crypto.protocols
Class EncryptedKeyExServer

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

public class EncryptedKeyExServer
extends EncryptedKeyEx
implements NoninterKeyExServer

Receive an encrypted key from the correstponding EncryptedKeyExClient

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

Fields inherited from class is.logi.crypto.Crypto
BIT, cdsPath, keySource, NIBBLE, primeCertainty, random
 
Constructor Summary
EncryptedKeyExServer(CipherKey key)
          Creates a new EncryptedKeyExchangeServer 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

EncryptedKeyExServer

public EncryptedKeyExServer(CipherKey key)
Creates a new EncryptedKeyExchangeServer object. It uses key to decrypt the session key sent to it by te client.
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 client and has not yet been sent to the client.

The returned value is the next message to send to the client 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