Interface ContentVerifier
-
- All Implemented Interfaces:
public interface ContentVerifier
General interface for an operator that is able to verify a signature based on data in a stream of output.
-
-
Method Summary
Modifier and Type Method Description abstract AlgorithmIdentifier
getAlgorithmIdentifier()
Return the algorithm identifier describing the signature algorithm and parameters this verifier supports. abstract OutputStream
getOutputStream()
Returns a stream that will accept data for the purpose of calculating a signature for later verification. abstract boolean
verify(Array<byte> expected)
Return true if the expected value of the signature matches the data passed into the stream. -
-
Method Detail
-
getAlgorithmIdentifier
abstract AlgorithmIdentifier getAlgorithmIdentifier()
Return the algorithm identifier describing the signature algorithm and parameters this verifier supports.
- Returns:
algorithm oid and parameters.
-
getOutputStream
abstract OutputStream getOutputStream()
Returns a stream that will accept data for the purpose of calculating a signature for later verification. Use io.anyline.nfc.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.
- Returns:
an OutputStream
-
-
-
-