@License public class PKCS7Verifier extends Verifier
| Constructor and Description |
|---|
PKCS7Verifier() |
| 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 boolean verify(InputStream signed) throws CryptoException
Verifierverify in class Verifiersigned - the encapsulated data.CryptoExceptionVerifier.verify(java.io.InputStream)public boolean verify(byte[] signed)
throws CryptoException
Verifierverify in class Verifiersigned - an array of bytes containing a signed file.CryptoExceptionVerifier.verify(byte[])public 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.CryptoExceptionVerifier.verify(byte[], byte[])Copyright © 2012-2014 Andrea Funtò. See here for terms and conditions.