Class PAdESCertificateSource
java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.spi.x509.TokenCertificateSource
eu.europa.esig.dss.spi.SignatureCertificateSource
eu.europa.esig.dss.spi.x509.CMSCertificateSource
eu.europa.esig.dss.cades.validation.CAdESCertificateSource
eu.europa.esig.dss.pades.validation.PAdESCertificateSource
- All Implemented Interfaces:
CertificateSource
,Serializable
CertificateSource that will retrieve the certificate from a PAdES Signature
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.SignatureCertificateSource
candidatesForSigningCertificate
Fields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher
-
Constructor Summary
ConstructorDescriptionPAdESCertificateSource
(PdfSignatureRevision pdfSignatureRevision, String vriDictionaryName, org.bouncycastle.cms.SignerInformation signerInformation) The default constructor for PAdESCertificateSource. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list ofCertificateRef
s included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)Gets the map of certificate PDF object ids and the certificateTokensRetrieves the list of all certificates from CertificateValues (XAdES/CAdES)Retrieves the list ofCertificateRef
s included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)Retrieves the list of all certificates from the DSS dictionary (PAdES)Retrieves the list of all certificates from the VRI dictionary (PAdES)Methods inherited from class eu.europa.esig.dss.spi.x509.CMSCertificateSource
extractCandidatesForSigningCertificate
Methods inherited from class eu.europa.esig.dss.spi.SignatureCertificateSource
getAttrAuthoritiesCertValues, getAttributeCertificates, getCandidatesForSigningCertificate, getCertificateSourceType, getCompleteCertificates, getKeyInfoCertificates, getSignedDataCertificates, getSigningCertificateRefs, getSigningCertificates, getTimeStampValidationDataCertValues
Methods inherited from class eu.europa.esig.dss.spi.x509.TokenCertificateSource
addCertificate, addCertificateIdentifier, addCertificateRef, findTokensFromRefs, getAllCertificateIdentifiers, getAllCertificateRefs, getCertificateRefOrigins, getCertificateRefsByOrigin, getCertificateToken, getCertificateTokensByOrigin, getCurrentCertificateIdentifier, getOrphanCertificateRefs, getReferencesForCertificateToken, isOrphan
Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, doesCertificateReferenceMatch, findTokensFromCertRef, getByCertificateDigest, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted, removeCertificate, reset
-
Constructor Details
-
PAdESCertificateSource
public PAdESCertificateSource(PdfSignatureRevision pdfSignatureRevision, String vriDictionaryName, org.bouncycastle.cms.SignerInformation signerInformation) The default constructor for PAdESCertificateSource.- Parameters:
pdfSignatureRevision
- the usedPdfSignatureRevision
vriDictionaryName
-String
the name of the corresponding /VRi dictionary to the validating signaturesignerInformation
- the currentSignerInformation
-
-
Method Details
-
getCertificateMap
Gets the map of certificate PDF object ids and the certificateTokens- Returns:
- a map between certificate PDF object ids and tokens
-
getCertificateValues
Description copied from class:SignatureCertificateSource
Retrieves the list of all certificates from CertificateValues (XAdES/CAdES)- Overrides:
getCertificateValues
in classSignatureCertificateSource
- Returns:
- the list of all certificates present in the CertificateValues
-
getCompleteCertificateRefs
Description copied from class:SignatureCertificateSource
Retrieves the list ofCertificateRef
s included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)- Overrides:
getCompleteCertificateRefs
in classSignatureCertificateSource
- Returns:
- the list of certificate references
-
getAttributeCertificateRefs
Description copied from class:SignatureCertificateSource
Retrieves the list ofCertificateRef
s included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)- Overrides:
getAttributeCertificateRefs
in classSignatureCertificateSource
- Returns:
- the list of certificate references
-
getDSSDictionaryCertValues
Description copied from class:SignatureCertificateSource
Retrieves the list of all certificates from the DSS dictionary (PAdES)- Overrides:
getDSSDictionaryCertValues
in classSignatureCertificateSource
- Returns:
- the list of all certificates present in the DSS dictionary
-
getVRIDictionaryCertValues
Description copied from class:SignatureCertificateSource
Retrieves the list of all certificates from the VRI dictionary (PAdES)- Overrides:
getVRIDictionaryCertValues
in classSignatureCertificateSource
- Returns:
- the list of all certificates present in the VRI dictionary
-