public interface

ContentVerifier

org.bouncycastle.operator.ContentVerifier

Summary

Public Methods
abstract AlgorithmIdentifier getAlgorithmIdentifier()
Return the algorithm identifier describing the signature algorithm and parameters this expander supports.
abstract OutputStream getOutputStream()
Returns a stream that will accept data for the purpose of calculating a signature for later verification.
abstract boolean verify(byte[] expected)

Public Methods

public abstract AlgorithmIdentifier getAlgorithmIdentifier ()

Return the algorithm identifier describing the signature algorithm and parameters this expander supports.

Returns
  • algorithm oid and parameters.

public abstract OutputStream getOutputStream ()

Returns a stream that will accept data for the purpose of calculating a signature for later verification. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.

Returns
  • an OutputStream

public abstract boolean verify (byte[] expected)

Parameters
expected expected value of the signature on the data.
Returns
  • true if the signature verifies, false otherwise