Class KarnBufferedReader

java.lang.Object
  extended byjava.io.Reader
      extended byjava.io.BufferedReader
          extended byKarnBufferedReader

public class KarnBufferedReader
extends java.io.BufferedReader


Field Summary
private  java.security.MessageDigest md
           
private  java.math.BigInteger sharedSecret
          The Karn Symmetric Encryption portion of the Monitor client
 
Fields inherited from class java.io.BufferedReader
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
KarnBufferedReader(java.io.Reader in, java.math.BigInteger sKey)
           
 
Method Summary
 java.lang.String decrypt(java.lang.String msg)
           
 java.lang.String readLine()
           
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sharedSecret

private java.math.BigInteger sharedSecret
The Karn Symmetric Encryption portion of the Monitor client


md

private java.security.MessageDigest md
Constructor Detail

KarnBufferedReader

public KarnBufferedReader(java.io.Reader in,
                          java.math.BigInteger sKey)
Method Detail

decrypt

public java.lang.String decrypt(java.lang.String msg)

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Throws:
java.io.IOException