Package eu.europa.esig.dss.validation
Class CMSCertificateSource
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.validation.CMSCertificateSource
- All Implemented Interfaces:
CertificateSource
,Serializable
- Direct Known Subclasses:
CAdESCertificateSource
,TimestampCertificateSource
CMS certificate source
- See Also:
-
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
ModifierConstructorDescriptionprotected
CMSCertificateSource
(org.bouncycastle.cms.CMSSignedData cmsSignedData, org.bouncycastle.cms.SignerInformation currentSignerInformation) The constructor to instantiate a CMSCertificateSource. -
Method Summary
Modifier and TypeMethodDescriptionprotected CandidatesForSigningCertificate
extractCandidatesForSigningCertificate
(CertificateSource signingCertificateSource) Extracts candidates to be a signing certificate from the sourceMethods inherited from class eu.europa.esig.dss.validation.SignatureCertificateSource
getAttrAuthoritiesCertValues, getAttributeCertificateRefs, getAttributeCertificates, getCandidatesForSigningCertificate, getCertificateSourceType, getCertificateValues, getCompleteCertificateRefs, getCompleteCertificates, getDSSDictionaryCertValues, getKeyInfoCertificates, getSignedDataCertificates, getSigningCertificateRefs, getSigningCertificates, getTimeStampValidationDataCertValues, 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, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted, removeCertificate, reset
-
Constructor Details
-
CMSCertificateSource
protected CMSCertificateSource(org.bouncycastle.cms.CMSSignedData cmsSignedData, org.bouncycastle.cms.SignerInformation currentSignerInformation) The constructor to instantiate a CMSCertificateSource. Allows to define a used signerInformation.- Parameters:
cmsSignedData
-CMSSignedData
currentSignerInformation
- the currentSignerInformation
extracted from cmsSignedData
-
-
Method Details
-
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 (optional)- Returns:
CandidatesForSigningCertificate
-