Class XAdESCertificateSource
- java.lang.Object
-
- eu.europa.esig.dss.spi.x509.CommonCertificateSource
-
- eu.europa.esig.dss.validation.SignatureCertificateSource
-
- eu.europa.esig.dss.xades.validation.XAdESCertificateSource
-
- All Implemented Interfaces:
CertificateSource,Serializable
public class XAdESCertificateSource extends SignatureCertificateSource
This class provides the mechanism to retrieve certificates contained in a XAdES signature.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XAdESCertificateSource(Element signatureElement, XPathQueryHolder xPathQueryHolder, CertificatePool certificatePool)The default constructor for XAdESCertificateSource.
-
Method Summary
Modifier and Type Method Description List<CertificateToken>getAttrAuthoritiesCertValues()Retrieves the list of all certificates from the AttrAuthoritiesCertValues (XAdES)List<CertificateRef>getAttributeCertificateRefs()Retrieves the list ofCertificateRefs included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)List<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>getKeyInfoCertificates()Returns the list of certificates included in "ds:KeyInfo/ds:X509Data/ds:X509Certificate" nodeList<CertificateRef>getSigningCertificateValues()Retrieves the list ofCertificateRefs for the signing certificate (V1/V2)List<CertificateToken>getTimeStampValidationDataCertValues()Retrieves the list of all certificates from the TimeStampValidationData (XAdES)-
Methods inherited from class eu.europa.esig.dss.validation.SignatureCertificateSource
findTokensFromRefs, getAllCertificateRefs, getAttributeCertificates, getCertificateRefByDigest, getCertificateSourceType, getCompleteCertificates, getDSSDictionaryCertValues, getIssuerInfo, getOrphanCertificateRefs, getReferencesForCertificateToken, getSigningCertificates, getVRIDictionaryCertValues
-
Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, getCertificatePool, getCertificates, getCertificateTokenByDigest, getNumberOfCertificates, isTrusted, removeCertificate
-
-
-
-
Constructor Detail
-
XAdESCertificateSource
public XAdESCertificateSource(Element signatureElement, XPathQueryHolder xPathQueryHolder, CertificatePool certificatePool)
The default constructor for XAdESCertificateSource. All certificates are extracted during instantiation.- Parameters:
signatureElement-Elementthat contains an XML signaturexPathQueryHolder- adaptedXPathQueryHoldercertificatePool-CertificatePoolto use to declare the found certificates
-
-
Method Detail
-
getKeyInfoCertificates
public List<CertificateToken> getKeyInfoCertificates()
Returns the list of certificates included in "ds:KeyInfo/ds:X509Data/ds:X509Certificate" node- Specified by:
getKeyInfoCertificatesin classSignatureCertificateSource- Returns:
- list of X509Certificate(s)
-
getCertificateValues
public List<CertificateToken> getCertificateValues()
Description copied from class:SignatureCertificateSourceRetrieves the list of all certificates from CertificateValues (XAdES/CAdES)- Specified by:
getCertificateValuesin classSignatureCertificateSource- Returns:
- the list of all certificates present in the CertificateValues
-
getAttrAuthoritiesCertValues
public List<CertificateToken> getAttrAuthoritiesCertValues()
Description copied from class:SignatureCertificateSourceRetrieves the list of all certificates from the AttrAuthoritiesCertValues (XAdES)- Specified by:
getAttrAuthoritiesCertValuesin classSignatureCertificateSource- Returns:
- the list of all certificates present in the AttrAuthoritiesCertValues
-
getTimeStampValidationDataCertValues
public List<CertificateToken> getTimeStampValidationDataCertValues()
Description copied from class:SignatureCertificateSourceRetrieves the list of all certificates from the TimeStampValidationData (XAdES)- Specified by:
getTimeStampValidationDataCertValuesin classSignatureCertificateSource- Returns:
- the list of all certificates present in the TimeStampValidationData
-
getSigningCertificateValues
public List<CertificateRef> getSigningCertificateValues()
Description copied from class:SignatureCertificateSourceRetrieves the list ofCertificateRefs for the signing certificate (V1/V2)- Specified by:
getSigningCertificateValuesin classSignatureCertificateSource- Returns:
- the list of references to the signing certificate
-
getCompleteCertificateRefs
public List<CertificateRef> getCompleteCertificateRefs()
Description copied from class:SignatureCertificateSourceRetrieves the list ofCertificateRefs included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)- Specified by:
getCompleteCertificateRefsin classSignatureCertificateSource- Returns:
- the list of certificate references
-
getAttributeCertificateRefs
public List<CertificateRef> getAttributeCertificateRefs()
Description copied from class:SignatureCertificateSourceRetrieves the list ofCertificateRefs included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)- Specified by:
getAttributeCertificateRefsin classSignatureCertificateSource- Returns:
- the list of certificate references
-
-