public class JarUtils extends Object
| Constructor and Description |
|---|
JarUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Certificate[] |
verifySignature(InputStream signature,
InputStream signatureBlock)
This method handle all the work with PKCS7, ASN1 encoding, signature verifying,
and certification path building.
|
public static Certificate[] verifySignature(InputStream signature, InputStream signatureBlock) throws IOException, GeneralSecurityException
signature - - the input stream of signature file to be verifiedsignatureBlock - - the input stream of corresponding signature block fileIOException - - if some errors occurs during reading from the streamGeneralSecurityException - - if signature verification process fails