is.logi.crypto.protocols
Class QRAuthClient

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

public class QRAuthClient
extends Crypto
implements InterAuthClient

Query-response authenticaton client. It expects to talk to a QRAuthServer object.

If the protocol is completed, the client is certain that the server also knows the secret key passed to the constructor.

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

Fields inherited from class is.logi.crypto.Crypto
BIT, cdsPath, keySource, NIBBLE, primeCertainty, random
 
Constructor Summary
QRAuthClient(CipherKey key)
          Creates a new QRAuthClient object with the specified secret key.
 
Method Summary
 boolean completed()
          Returns true iff this end of the protocol is completed.
 byte[] message(byte[] received)
          Get the next message in the protocol.
 
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

QRAuthClient

public QRAuthClient(CipherKey key)
Creates a new QRAuthClient object with the specified secret key.
Method Detail

completed

public boolean completed()
Returns true iff this end of the protocol is completed.

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