Class JAdESCertificateSource
java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.spi.x509.TokenCertificateSource
eu.europa.esig.dss.spi.SignatureCertificateSource
eu.europa.esig.dss.jades.validation.JAdESCertificateSource
- All Implemented Interfaces:
CertificateSource
,Serializable
Extracts and stores certificates from a JAdES signature
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.SignatureCertificateSource
candidatesForSigningCertificate
Fields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher
-
Constructor Summary
ConstructorDescriptionJAdESCertificateSource
(JWS jws, JAdESEtsiUHeader etsiUHeader) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected CandidatesForSigningCertificate
extractCandidatesForSigningCertificate
(CertificateSource signingCertificateSource) Extracts candidates to be a signing certificate from the sourcefindTokensFromCertRef
(CertificateRef certificateRef) Returns Set ofCertificateToken
s for the providedCertificateRef
Retrieves the list ofCertificateRef
s referenced within a 'kid' (key identifier) headerRetrieves the Set ofCertificateToken
s according to a reference present within a 'kid' (key identifier) headerReturns a list of orphan certificate refsgetReferencesForCertificateToken
(CertificateToken certificateToken) Returns list ofCertificateRef
s found for the givencertificateToken
Methods inherited from class eu.europa.esig.dss.spi.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, isOrphan
Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, doesCertificateReferenceMatch, getByCertificateDigest, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted, removeCertificate, reset
-
Constructor Details
-
JAdESCertificateSource
Default constructor- Parameters:
jws
-JWS
signatureetsiUHeader
-JAdESEtsiUHeader
unsigned component
-
-
Method Details
-
getKeyIdentifierCertificateRefs
Retrieves the list ofCertificateRef
s referenced within a 'kid' (key identifier) header- Returns:
- the list of references to the signing certificate (from key identifier)
-
getKeyIdentifierCertificates
Retrieves the Set ofCertificateToken
s according to a reference present within a 'kid' (key identifier) header- Returns:
- Set of
CertificateToken
s
-
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
-
getOrphanCertificateRefs
Description copied from class:TokenCertificateSource
Returns a list of orphan certificate refs- Overrides:
getOrphanCertificateRefs
in classTokenCertificateSource
- Returns:
- list of
CertificateRef
s
-
getReferencesForCertificateToken
Description copied from class:TokenCertificateSource
Returns list ofCertificateRef
s found for the givencertificateToken
- Overrides:
getReferencesForCertificateToken
in classTokenCertificateSource
- Parameters:
certificateToken
-CertificateToken
to find references for- Returns:
- list of
CertificateRef
s
-
findTokensFromCertRef
Description copied from interface:CertificateSource
Returns Set ofCertificateToken
s for the providedCertificateRef
- Specified by:
findTokensFromCertRef
in interfaceCertificateSource
- Overrides:
findTokensFromCertRef
in classCommonCertificateSource
- Parameters:
certificateRef
- aCertificateRef
- Returns:
- Set of
CertificateToken
s
-