Top Description Methods
org.bouncycastle.operator

public Interface ContentVerifier

Known Direct Implementers
org.bouncycastle.operator.jcajce.JcaContentVerifierProviderBuilder.SigVerifier
Imports
java.io.OutputStream, org.bouncycastle.asn1.x509.AlgorithmIdentifier

General interface for an operator that is able to verify a signature based on data in a stream of output.

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier

Returns:

algorithm oid and parameters.
getAlgorithmIdentifier
()

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

public OutputStream

Returns:

an OutputStream
getOutputStream
()

Returns a stream that will accept data for the purpose of calculating a signature for later verification.

public boolean

Returns:

true if the signature verifies, false otherwise
verify
(byte[]
expected value of the signature on the data.
expected
)

Return true if the expected value of the signature matches the data passed into the stream.

Method Detail

getAlgorithmIdentifierback to summary
public AlgorithmIdentifier getAlgorithmIdentifier()

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

Returns:AlgorithmIdentifier

algorithm oid and parameters.

getOutputStreamback to summary
public 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:OutputStream

an OutputStream

verifyback to summary
public boolean verify(byte[] expected)

Return true if the expected value of the signature matches the data passed into the stream.

Parameters
expected:byte[]

expected value of the signature on the data.

Returns:boolean

true if the signature verifies, false otherwise