| Modifier and Type | Class and Description |
|---|---|
| public static class | CertInformationCollector.
Data class to hold Signature, Certificate (and its chain(s)) and revocation Information |
| Modifier and Type | Field and Description |
|---|---|
| private final JcaX509CertificateConverter | |
| private final Set | |
| private static final Log | |
| private static final int | |
| private CertInformationCollector. | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addAllCerts(Collection<X509CertificateHolder>
Collection of X509CertificateHolder certHolders)Adds multiple Certificates out of a Collection of X509CertificateHolder into certificateSet. |
| public void | addAllCertsFromHolders(X509CertificateHolder[]
Array of X509CertificateHolder certHolders)Gets a list of X509Certificate out of an array of X509CertificateHolder. |
| private void | addTimestampCerts(SignerInformation
of the signature, to get unsigned attributes from it. signerInformation)Processes an embedded signed timestamp, that has been placed into a signature. |
| private void | getAlternativeIssuerCertificate(CertInformationCollector.
base Certificate Information, on which to put the alternative Certificate certInfo,Maximum depth to dig through the chain from here on. maxDepth)Get alternative certificate chain, from the Authority Information (a url). |
| private X509Certificate | Returns: a X509Certificate ornull when there was an Error with the Certificateto get the certificate from certificateHolder)Gets the X509Certificate out of the X509CertificateHolder. |
| public Set | Returns: a set of serial numbers to certificates.Get the set of all processed certificates until now. |
| private CertInformationCollector. | Returns: the CertSignatureInformation for this signaturethe byte[]-Content of the signature signatureContent)Processes one signature and its including certificates. |
| pack-priv CertInformationCollector. | |
| public CertInformationCollector. | Returns: the CertSignatureInformation containing all certificate informationthe signature of the document. signature, String of the document. fileName)Gets the certificate information of a signature. |
| private SignerInformation | Returns: Signer Information of the processed certificatesStore for further usage.data from which to get the SignerInformation signedData, CertInformationCollector.where to add certificate information certInfoProcesses a signer store and goes through the signers certificate-chain. |
| private void | traverseChain(X509Certificate
Actual Certificate to be processed certificate, CertInformationCollector.where to add the Certificate (and chain) information certInfo,Max depth from this point to go through CertChain (could be infinite) maxDepth)Traverse through the Cert-Chain of the given Certificate and add it to the CertInfo recursively. |
| certConverter | back to summary |
|---|---|
| private final JcaX509CertificateConverter certConverter | |
| certificateSet | back to summary |
|---|---|
| private final Set<X509Certificate> certificateSet | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| MAX_CERTIFICATE_CHAIN_DEPTH | back to summary |
|---|---|
| private static final int MAX_CERTIFICATE_CHAIN_DEPTH | |
| rootCertInfo | back to summary |
|---|---|
| private CertInformationCollector. | |
| urlSet | back to summary |
|---|---|
| private final Set<String> urlSet | |
| CertInformationCollector | back to summary |
|---|---|
| public CertInformationCollector() | |
| addAllCerts | back to summary |
|---|---|
| private void addAllCerts(Collection<X509CertificateHolder> certHolders) Adds multiple Certificates out of a Collection of X509CertificateHolder into certificateSet.
| |
| addAllCertsFromHolders | back to summary |
|---|---|
| public void addAllCertsFromHolders(X509CertificateHolder[] certHolders) throws CertificateProccessingException Gets a list of X509Certificate out of an array of X509CertificateHolder. The certificates will be added to certificateSet.
| |
| addTimestampCerts | back to summary |
|---|---|
| private void addTimestampCerts(SignerInformation signerInformation) throws IOException, CertificateProccessingException Processes an embedded signed timestamp, that has been placed into a signature. The certificates and its chain(s) will be processed the same way as the signature itself.
| |
| getAlternativeIssuerCertificate | back to summary |
|---|---|
| private void getAlternativeIssuerCertificate(CertInformationCollector. Get alternative certificate chain, from the Authority Information (a url). If the chain is not included in the signature, this is the main chain. Otherwise there might be a second chain. Exceptions which happen on this chain will be logged and ignored, because the cert might not be available at the time or other reasons.
| |
| getCertFromHolder | back to summary |
|---|---|
| private X509Certificate getCertFromHolder(X509CertificateHolder certificateHolder) throws CertificateProccessingException Gets the X509Certificate out of the X509CertificateHolder.
| |
| getCertificateSet | back to summary |
|---|---|
| public Set Get the set of all processed certificates until now.
| |
| getCertInfo | back to summary |
|---|---|
| private CertInformationCollector. Processes one signature and its including certificates.
| |
| getCertInfo | back to summary |
|---|---|
| pack-priv CertInformationCollector. Traverse a certificate. | |
| getLastCertInfo | back to summary |
|---|---|
| public CertInformationCollector. Gets the certificate information of a signature.
| |
| processSignerStore | back to summary |
|---|---|
| private SignerInformation processSignerStore(CMSSignedData signedData, CertInformationCollector. Processes a signer store and goes through the signers certificate-chain. Adds the found data to the certInfo. Handles only the first signer, although multiple would be possible, but is not yet practicable.
| |
| traverseChain | back to summary |
|---|---|
| private void traverseChain(X509Certificate certificate, CertInformationCollector. Traverse through the Cert-Chain of the given Certificate and add it to the CertInfo recursively.
| |
| Modifier and Type | Field and Description |
|---|---|
| private CertInformationCollector. | |
| private CertInformationCollector. | |
| private X509Certificate | |
| private String | |
| private boolean | |
| private final Set | |
| private String | |
| private String | |
| private String | |
| private CertInformationCollector. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CertInformationCollector. | |
| public CertInformationCollector. | |
| public X509Certificate | |
| public String | |
| public Set | |
| public String | |
| public String | |
| public CertInformationCollector. | |
| public boolean | |
| public void | |
| public void |
| alternativeCertChain | back to summary |
|---|---|
| private CertInformationCollector. | |
| certChain | back to summary |
|---|---|
| private CertInformationCollector. | |
| certificate | back to summary |
|---|---|
| private X509Certificate certificate | |
| crlUrl | back to summary |
|---|---|
| private String crlUrl | |
| isSelfSigned | back to summary |
|---|---|
| private boolean isSelfSigned | |
| issuerCertificates | back to summary |
|---|---|
| private final Set<X509Certificate> issuerCertificates | |
| issuerUrl | back to summary |
|---|---|
| private String issuerUrl | |
| ocspUrl | back to summary |
|---|---|
| private String ocspUrl | |
| signatureHash | back to summary |
|---|---|
| private String signatureHash | |
| tsaCerts | back to summary |
|---|---|
| private CertInformationCollector. | |
| CertSignatureInformation | back to summary |
|---|---|
| public CertSignatureInformation() | |
| getAlternativeCertChain | back to summary |
|---|---|
| public CertInformationCollector. | |
| getCertChain | back to summary |
|---|---|
| public CertInformationCollector. | |
| getCertificate | back to summary |
|---|---|
| public X509Certificate getCertificate() | |
| getCrlUrl | back to summary |
|---|---|
| public String getCrlUrl() | |
| getIssuerCertificates | back to summary |
|---|---|
| public Set | |
| getOcspUrl | back to summary |
|---|---|
| public String getOcspUrl() | |
| getSignatureHash | back to summary |
|---|---|
| public String getSignatureHash() | |
| getTsaCerts | back to summary |
|---|---|
| public CertInformationCollector. | |
| isSelfSigned | back to summary |
|---|---|
| public boolean isSelfSigned() | |
| setIssuerUrl | back to summary |
|---|---|
| public void setIssuerUrl(String issuerUrl) | |
| setOcspUrl | back to summary |
|---|---|
| public void setOcspUrl(String ocspUrl) | |