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, XAdESPaths xadesPaths, 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, getVRIDictionaryCertValuesMethods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, getCertificatePool, getCertificates, getCertificateTokenByDigest, getNumberOfCertificates, isTrusted, removeCertificate
-
Constructor Details
-
XAdESCertificateSource
public XAdESCertificateSource(Element signatureElement, XAdESPaths xadesPaths, CertificatePool certificatePool)The default constructor for XAdESCertificateSource. All certificates are extracted during instantiation.- Parameters:
signatureElement-Elementthat contains an XML signaturexadesPaths- adaptedXAdESPathscertificatePool-CertificatePoolto use to declare the found certificates
-
-
Method Details
-
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
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
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
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
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
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
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
-