Class SignedInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

public class SignedInputStream extends FilterInputStream
Objects of this class can be used to verify the contents of a stream generated by a SignedOutputStream class. Note: This is not a part of the official handle protocol specification. This was introduced by CNRI solely for replication in the Handle.net software.
  • Field Details

  • Constructor Details

    • SignedInputStream

      public SignedInputStream(PublicKey sourceKey, InputStream in, Socket socket) throws Exception
      Create a stream that can verify the data read from the stream in blocks. The caller should call the verifyBlock method at the end of every block of data that needs to be verified. verifyBlock must be called at the same position in the stream that signBlock was called in the parallel SignedOutputStream object that generated the stream.
      Throws:
      Exception
  • Method Details