public class CertInformationCollector extends Object
Modifier and Type | Class and Description |
---|---|
class |
CertInformationCollector.CertSignatureInformation
Data class to hold Signature, Certificate (and its chain(s)) and revocation Information
|
Constructor and Description |
---|
CertInformationCollector() |
Modifier and Type | Method and Description |
---|---|
void |
addAllCertsFromHolders(org.bouncycastle.cert.X509CertificateHolder[] certHolders)
Gets a list of X509Certificate out of an array of X509CertificateHolder.
|
Map<BigInteger,X509Certificate> |
getCertificateStore()
Get the certificate store of all processed certificates until now.
|
CertInformationCollector.CertSignatureInformation |
getLastCertInfo(PDDocument document,
String fileName)
Gets the Certificate Information of the last Signature.
|
public CertInformationCollector.CertSignatureInformation getLastCertInfo(PDDocument document, String fileName) throws CertificateProccessingException, IOException
document
- to get the Signature fromfileName
- of the document.CertificateProccessingException
- when there is an error processing the certificatesIOException
- on a data processing errorpublic void addAllCertsFromHolders(org.bouncycastle.cert.X509CertificateHolder[] certHolders) throws CertificateProccessingException
certHolders
- Array of X509CertificateHolderCertificateProccessingException
- when one of the Certificates could not be parsed.public Map<BigInteger,X509Certificate> getCertificateStore()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.