net.sourceforge.jcetaglib.tools
Class MacInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended bynet.sourceforge.jcetaglib.tools.MacInputStream

public class MacInputStream
extends java.io.FilterInputStream

MacInputStream. As it reads in data it passes it though a MAC


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
MacInputStream(java.io.InputStream st, javax.crypto.Mac mac)
           
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int o, int l)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacInputStream

public MacInputStream(java.io.InputStream st,
                      javax.crypto.Mac mac)
Method Detail

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b,
                int o,
                int l)
         throws java.io.IOException
Throws:
java.io.IOException