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 ofCertificateRef
s 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 ofCertificateRef
s 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 ofCertificateRef
s 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 Details
-
XAdESCertificateSource
public XAdESCertificateSource(Element signatureElement, XAdESPaths xadesPaths, CertificatePool certificatePool)The default constructor for XAdESCertificateSource. All certificates are extracted during instantiation.- Parameters:
signatureElement
-Element
that contains an XML signaturexadesPaths
- adaptedXAdESPaths
certificatePool
-CertificatePool
to 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:
getKeyInfoCertificates
in classSignatureCertificateSource
- Returns:
- list of X509Certificate(s)
-
getCertificateValues
Description copied from class:SignatureCertificateSource
Retrieves the list of all certificates from CertificateValues (XAdES/CAdES)- Specified by:
getCertificateValues
in classSignatureCertificateSource
- Returns:
- the list of all certificates present in the CertificateValues
-
getAttrAuthoritiesCertValues
Description copied from class:SignatureCertificateSource
Retrieves the list of all certificates from the AttrAuthoritiesCertValues (XAdES)- Specified by:
getAttrAuthoritiesCertValues
in classSignatureCertificateSource
- Returns:
- the list of all certificates present in the AttrAuthoritiesCertValues
-
getTimeStampValidationDataCertValues
Description copied from class:SignatureCertificateSource
Retrieves the list of all certificates from the TimeStampValidationData (XAdES)- Specified by:
getTimeStampValidationDataCertValues
in classSignatureCertificateSource
- Returns:
- the list of all certificates present in the TimeStampValidationData
-
getSigningCertificateValues
Description copied from class:SignatureCertificateSource
Retrieves the list ofCertificateRef
s for the signing certificate (V1/V2)- Specified by:
getSigningCertificateValues
in classSignatureCertificateSource
- Returns:
- the list of references to the signing certificate
-
getCompleteCertificateRefs
Description copied from class:SignatureCertificateSource
Retrieves the list ofCertificateRef
s included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)- Specified by:
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)- Specified by:
getAttributeCertificateRefs
in classSignatureCertificateSource
- Returns:
- the list of certificate references
-