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