Class PAdESCertificateSource
java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.validation.SignatureCertificateSource
eu.europa.esig.dss.validation.CMSCertificateSource
eu.europa.esig.dss.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
-
Constructor Summary
Constructors Constructor Description PAdESCertificateSource(PdfDssDict dssDictionary, org.bouncycastle.cms.CMSSignedData cmsSignedData, CertificatePool certPool)
The default constructor for PAdESCertificateSource. -
Method Summary
Modifier and Type Method Description List<CertificateRef>
getAttributeCertificateRefs()
Retrieves the list ofCertificateRef
s included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)Map<Long,CertificateToken>
getCertificateMap()
List<CertificateToken>
getCertificateValues()
Retrieves the list of all certificates from CertificateValues (XAdES/CAdES)List<CertificateRef>
getCompleteCertificateRefs()
Retrieves the list ofCertificateRef
s 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.CAdESCertificateSource
getAttrAuthoritiesCertValues, getKeyInfoCertificates, getSigningCertificateValues, getTimeStampValidationDataCertValues
Methods inherited from class eu.europa.esig.dss.validation.SignatureCertificateSource
findTokensFromRefs, getAllCertificateRefs, getAttributeCertificates, getCertificateRefByDigest, getCertificateSourceType, getCompleteCertificates, getIssuerInfo, getOrphanCertificateRefs, getReferencesForCertificateToken, getSigningCertificates
Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, getCertificatePool, getCertificates, getCertificateTokenByDigest, getNumberOfCertificates, isTrusted, removeCertificate
-
Constructor Details
-
PAdESCertificateSource
public PAdESCertificateSource(PdfDssDict dssDictionary, org.bouncycastle.cms.CMSSignedData cmsSignedData, CertificatePool certPool)The default constructor for PAdESCertificateSource.- Parameters:
dssDictionary
- the DSS dictionarycmsSignedData
-certPool
- The pool of certificates to be used. Can be null.
-
-
Method Details
-
getCertificateMap
-
getCertificateValues
Description copied from class:SignatureCertificateSource
Retrieves the list of all certificates from CertificateValues (XAdES/CAdES)- Overrides:
getCertificateValues
in classCMSCertificateSource
- 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 classCMSCertificateSource
- 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 classCMSCertificateSource
- 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
-