Bouncy Castle Cryptography Library 1.79

org.bouncycastle.cms
Class InputStreamWithMAC

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--org.bouncycastle.cms.InputStreamWithMAC

public final class InputStreamWithMAC
extends java.io.InputStream


Constructor Summary
InputStreamWithMAC(java.io.InputStream base, byte[] mac)
           
 
Method Summary
 byte[] getMAC()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamWithMAC

public InputStreamWithMAC(java.io.InputStream base,
                          byte[] mac)
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.InputStream

getMAC

public byte[] getMAC()

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream

Bouncy Castle Cryptography Library 1.79