@License public abstract class Verifier extends CryptoService
| Constructor and Description |
|---|
Verifier() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
verify(byte[] signed)
Verifies that the signed data in the input array has not been tampered with.
|
abstract boolean |
verify(byte[] data,
byte[] signature)
Verifies a detached signature, given the data upon which it was originally
calculated and the detached signature bytes.
|
abstract boolean |
verify(InputStream signed)
Verifies the signature of the given set of encapsulated data.
|
public abstract boolean verify(byte[] signed)
throws CryptoException
signed - an array of bytes containing a signed file.CryptoExceptionpublic abstract boolean verify(byte[] data,
byte[] signature)
throws CryptoException
data - the data on which the signature was originally calculated.signature - the (detached) signature as a byte array.CryptoExceptionpublic abstract boolean verify(InputStream signed) throws CryptoException
signed - the encapsulated data.CryptoExceptionCopyright © 2012-2014 Andrea Funtò. See here for terms and conditions.