public class PGPVerifier extends Object
Constructor and Description |
---|
PGPVerifier() |
public PGPVerifier()
public void verify(File file, File signatureFile) throws PGPVerifyException
file
.file
- the file to be verified. Must not be null
. There must be a second file
with the same name and the additional suffix ".sig" next to this file (in the same directory).
This secondary file is a so-called detached signature.PGPVerifyException
- if the given file
could not be verified successfully. Either
there is no detached-signature-file, or its signature is broken or its signature does not match
any of the trusted keys.Copyright © 2013-2014. All Rights Reserved.