Class JAdESCertificateSource
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.jades.validation.JAdESCertificateSource
- All Implemented Interfaces:
CertificateSource
,Serializable
public class JAdESCertificateSource extends SignatureCertificateSource
Extracts and stores certificates from a JAdES signature
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.SignatureCertificateSource
candidatesForSigningCertificate
Fields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher
-
Constructor Summary
Constructors Constructor Description JAdESCertificateSource(JWS jws, JAdESEtsiUHeader etsiUHeader)
Default constructor -
Method Summary
Modifier and Type Method Description protected CandidatesForSigningCertificate
extractCandidatesForSigningCertificate(CertificateSource signingCertificateSource)
Extracts candidates to be a signing certificate from the sourceList<CertificateToken>
getTimeStampValidationDataCertValues()
Retrieves the list of all certificates from the TimeStampValidationData (XAdES)Methods inherited from class eu.europa.esig.dss.validation.SignatureCertificateSource
getAttrAuthoritiesCertValues, getAttributeCertificateRefs, getAttributeCertificates, getCandidatesForSigningCertificate, getCertificateSourceType, getCertificateValues, getCompleteCertificateRefs, getCompleteCertificates, getDSSDictionaryCertValues, getKeyInfoCertificates, getSignedDataCertificates, getSigningCertificateRefs, getSigningCertificates, getVRIDictionaryCertValues
Methods inherited from class eu.europa.esig.dss.spi.x509.TokenCertificateSource
addCertificate, addCertificateIdentifier, addCertificateRef, findTokensFromRefs, getAllCertificateIdentifiers, getAllCertificateRefs, getCertificateRefOrigins, getCertificateRefsByOrigin, getCertificateToken, getCertificateTokensByOrigin, getCurrentCertificateIdentifier, getOrphanCertificateRefs, getReferencesForCertificateToken
Methods 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
-
JAdESCertificateSource
Default constructor- Parameters:
jws
-JWS
signatureetsiUHeader
-JAdESEtsiUHeader
unsigned component
-
-
Method Details
-
getTimeStampValidationDataCertValues
Description copied from class:SignatureCertificateSource
Retrieves the list of all certificates from the TimeStampValidationData (XAdES)- Overrides:
getTimeStampValidationDataCertValues
in classSignatureCertificateSource
- Returns:
- the list of all certificates present in the TimeStampValidationData
-
extractCandidatesForSigningCertificate
protected CandidatesForSigningCertificate extractCandidatesForSigningCertificate(CertificateSource signingCertificateSource)Description copied from class:SignatureCertificateSource
Extracts candidates to be a signing certificate from the source- Specified by:
extractCandidatesForSigningCertificate
in classSignatureCertificateSource
- Parameters:
signingCertificateSource
-CertificateSource
which allows to resolve the signing certificate from external sources- Returns:
CandidatesForSigningCertificate
-