Class PAdESCertificateSource
java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.spi.x509.TokenCertificateSource
eu.europa.esig.dss.validation.SignatureCertificateSource
eu.europa.esig.dss.validation.CMSCertificateSource
eu.europa.esig.dss.cades.validation.CAdESCertificateSource
eu.europa.esig.dss.pades.validation.PAdESCertificateSource
- All Implemented Interfaces:
CertificateSource,Serializable
public class PAdESCertificateSource extends CAdESCertificateSource
CertificateSource that will retrieve the certificate from a PAdES Signature
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.SignatureCertificateSource
candidatesForSigningCertificateFields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher -
Constructor Summary
Constructors Constructor Description PAdESCertificateSource(PdfSignatureRevision pdfSignatureRevision, org.bouncycastle.cms.SignerInformation signerInformation)The default constructor for PAdESCertificateSource. -
Method Summary
Modifier and Type Method Description List<CertificateRef>getAttributeCertificateRefs()Retrieves the list ofCertificateRefs included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)Map<Long,CertificateToken>getCertificateMap()Gets the map of certificate PDF object ids and the certificateTokensList<CertificateToken>getCertificateValues()Retrieves the list of all certificates from CertificateValues (XAdES/CAdES)List<CertificateRef>getCompleteCertificateRefs()Retrieves the list ofCertificateRefs included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)List<CertificateToken>getDSSDictionaryCertValues()Retrieves the list of all certificates from the DSS dictionary (PAdES)List<CertificateToken>getVRIDictionaryCertValues()Retrieves the list of all certificates from the VRI dictionary (PAdES)Methods inherited from class eu.europa.esig.dss.validation.CMSCertificateSource
extractCandidatesForSigningCertificateMethods inherited from class eu.europa.esig.dss.validation.SignatureCertificateSource
getAttrAuthoritiesCertValues, getAttributeCertificates, getCandidatesForSigningCertificate, getCertificateSourceType, getCompleteCertificates, getKeyInfoCertificates, getSignedDataCertificates, getSigningCertificateRefs, getSigningCertificates, getTimeStampValidationDataCertValuesMethods inherited from class eu.europa.esig.dss.spi.x509.TokenCertificateSource
addCertificate, addCertificateIdentifier, addCertificateRef, findTokensFromRefs, getAllCertificateIdentifiers, getAllCertificateRefs, getCertificateRefOrigins, getCertificateRefsByOrigin, getCertificateToken, getCertificateTokensByOrigin, getCurrentCertificateIdentifier, getOrphanCertificateRefs, getReferencesForCertificateTokenMethods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, findTokensFromCertRef, getByCertificateDigest, getByCertificateIdentifier, getByPublicKey, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isKnown, isTrusted, reset
-
Constructor Details
-
PAdESCertificateSource
public PAdESCertificateSource(PdfSignatureRevision pdfSignatureRevision, org.bouncycastle.cms.SignerInformation signerInformation)The default constructor for PAdESCertificateSource.- Parameters:
pdfSignatureRevision- the usedPdfSignatureRevisionsignerInformation- 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:SignatureCertificateSourceRetrieves the list of all certificates from CertificateValues (XAdES/CAdES)- Overrides:
getCertificateValuesin classSignatureCertificateSource- Returns:
- the list of all certificates present in the CertificateValues
-
getCompleteCertificateRefs
Description copied from class:SignatureCertificateSourceRetrieves the list ofCertificateRefs included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)- Overrides:
getCompleteCertificateRefsin classSignatureCertificateSource- Returns:
- the list of certificate references
-
getAttributeCertificateRefs
Description copied from class:SignatureCertificateSourceRetrieves the list ofCertificateRefs included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)- Overrides:
getAttributeCertificateRefsin classSignatureCertificateSource- Returns:
- the list of certificate references
-
getDSSDictionaryCertValues
Description copied from class:SignatureCertificateSourceRetrieves the list of all certificates from the DSS dictionary (PAdES)- Overrides:
getDSSDictionaryCertValuesin classSignatureCertificateSource- Returns:
- the list of all certificates present in the DSS dictionary
-
getVRIDictionaryCertValues
Description copied from class:SignatureCertificateSourceRetrieves the list of all certificates from the VRI dictionary (PAdES)- Overrides:
getVRIDictionaryCertValuesin classSignatureCertificateSource- Returns:
- the list of all certificates present in the VRI dictionary
-