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> |
getCertificatesMap()
Get the map of all processed certificates until now.
|
CertInformationCollector.CertSignatureInformation |
getLastCertInfo(PDSignature signature,
String fileName)
Gets the certificate information of a signature.
|
public CertInformationCollector.CertSignatureInformation getLastCertInfo(PDSignature signature, String fileName) throws CertificateProccessingException, IOException
signature
- the signature of the document.fileName
- 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> getCertificatesMap()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.