Top Description Methods
org.bouncycastle.crypto

public Interface OutputVerifier<T extends Parameters>

Known Direct Subinterfaces
org.bouncycastle.crypto.OutputVerifierWithMessageRecovery
Known Direct Implementers
org.bouncycastle.crypto.fips.FipsOutputVerifier, org.bouncycastle.crypto.general.DSAOutputVerifier
Type Parameters
<T>
the parameters type for the verifier.

Base interface for an output verifier which can be used to verify a signature against a data stream.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the verifier's parameters.
getParameters
()

Return the parameters for this output verifier.

public UpdateOutputStream

Returns:

an UpdateOutputStream
getVerifyingStream
()

Returns a stream that will accept data for the purpose of verifying a previously calculated signature.

public boolean

Returns:

true if the data verifies against the signature, false otherwise.
isVerified
(byte[]
the signature to be confirmed.
signature
)

Return true if the data written to the verifying stream matches the data the signature was calculated against.

Method Detail

getParametersback to summary
public T getParameters()

Return the parameters for this output verifier.

Returns:T

the verifier's parameters.

getVerifyingStreamback to summary
public UpdateOutputStream getVerifyingStream()

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

Returns:UpdateOutputStream

an UpdateOutputStream

isVerifiedback to summary
public boolean isVerified(byte[] signature) throws InvalidSignatureException

Return true if the data written to the verifying stream matches the data the signature was calculated against.

Parameters
signature:byte[]

the signature to be confirmed.

Returns:boolean

true if the data verifies against the signature, false otherwise.