Bouncy Castle Cryptography Library 1.59

org.bouncycastle.eac.operator
Interface EACSignatureVerifier


public interface EACSignatureVerifier


Method Summary
 java.io.OutputStream getOutputStream()
          Returns a stream that will accept data for the purpose of calculating a signature for later verification.
 org.bouncycastle.asn1.ASN1ObjectIdentifier getUsageIdentifier()
          Return the usage OID specifying the signature type.
 boolean verify(byte[] expected)
           
 

Method Detail

getUsageIdentifier

public org.bouncycastle.asn1.ASN1ObjectIdentifier getUsageIdentifier()
Return the usage OID specifying the signature type.

Returns:
algorithm oid.

getOutputStream

public java.io.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

verify

public boolean verify(byte[] expected)
Parameters:
expected - expected value of the signature on the data.
Returns:
true if the signature verifies, false otherwise

Bouncy Castle Cryptography Library 1.59