public class OwJarVerifier extends Object
Utility class for checking jar file integrity.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwJarVerifier(URL jarURL_p) |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
org.bouncycastle.cert.X509CertificateHolder[] |
getSignatureCertificates()
Get Signature Certificates
|
static X509Certificate |
getWeWebUCertificate()
Get Workdesk Certificate
|
boolean |
isSigned()
We'll search for a file named META-INF/*.DSA or META-INF/*.RSA
|
void |
verify(X509Certificate targetCert_p)
First, retrieve the jar file from the URL passed in constructor.
|
public OwJarVerifier(URL jarURL_p)
public void verify(X509Certificate targetCert_p) throws IOException
targetCert_p
- IOException
protected void finalize() throws Throwable
public boolean isSigned()
public org.bouncycastle.cert.X509CertificateHolder[] getSignatureCertificates() throws IOException, org.bouncycastle.cms.CMSException
X509Certificate
[]IOException
org.bouncycastle.cms.CMSException
public static X509Certificate getWeWebUCertificate() throws IOException, CertificateException
X509Certificate
IOException
CertificateException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.