Bouncy Castle Cryptography Library 1.81

org.bouncycastle.openpgp
Class IntegrityProtectedInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.bouncycastle.openpgp.IntegrityProtectedInputStream

public class IntegrityProtectedInputStream
extends java.io.FilterInputStream

InputStream that performs verification of integrity protection upon close().


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
IntegrityProtectedInputStream(java.io.InputStream in, PGPEncryptedData dataPacket)
           
 
Method Summary
 void close()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegrityProtectedInputStream

public IntegrityProtectedInputStream(java.io.InputStream in,
                                     PGPEncryptedData dataPacket)
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 off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.81