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
candidatesForSigningCertificateFields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher -
Constructor Summary
ConstructorsConstructorDescriptionJAdESCertificateSource(JWS jws, JAdESEtsiUHeader etsiUHeader) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected CandidatesForSigningCertificateextractCandidatesForSigningCertificate(CertificateSource signingCertificateSource) Extracts candidates to be a signing certificate from the sourcefindTokensFromCertRef(CertificateRef certificateRef) Returns Set ofCertificateTokens for the providedCertificateRefRetrieves the list ofCertificateRefs referenced within a 'kid' (key identifier) headerRetrieves the Set ofCertificateTokens according to a reference present within a 'kid' (key identifier) headerReturns a list of orphan certificate refsgetReferencesForCertificateToken(CertificateToken certificateToken) Returns list ofCertificateRefs found for the givencertificateTokenMethods inherited from class eu.europa.esig.dss.spi.SignatureCertificateSource
getAttrAuthoritiesCertValues, getAttributeCertificateRefs, getAttributeCertificates, getCandidatesForSigningCertificate, getCertificateSourceType, getCertificateValues, getCompleteCertificateRefs, getCompleteCertificates, getDSSDictionaryCertValues, getKeyInfoCertificates, getSignedDataCertificates, getSigningCertificateRefs, getSigningCertificates, getTimeStampValidationDataCertValues, getVRIDictionaryCertValuesMethods inherited from class eu.europa.esig.dss.spi.x509.TokenCertificateSource
addCertificate, addCertificateIdentifier, addCertificateRef, findTokensFromRefs, getAllCertificateIdentifiers, getAllCertificateRefs, getCertificateRefOrigins, getCertificateRefsByOrigin, getCertificateToken, getCertificateTokensByOrigin, getCurrentCertificateIdentifier, isOrphanMethods 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-JWSsignatureetsiUHeader-JAdESEtsiUHeaderunsigned component
-
-
Method Details
-
getKeyIdentifierCertificateRefs
Retrieves the list ofCertificateRefs referenced within a 'kid' (key identifier) header- Returns:
- the list of references to the signing certificate (from key identifier)
-
getKeyIdentifierCertificates
Retrieves the Set ofCertificateTokens according to a reference present within a 'kid' (key identifier) header- Returns:
- Set of
CertificateTokens
-
extractCandidatesForSigningCertificate
protected CandidatesForSigningCertificate extractCandidatesForSigningCertificate(CertificateSource signingCertificateSource) Description copied from class:SignatureCertificateSourceExtracts candidates to be a signing certificate from the source- Specified by:
extractCandidatesForSigningCertificatein classSignatureCertificateSource- Parameters:
signingCertificateSource-CertificateSourcewhich allows to resolve the signing certificate from external sources (optional)- Returns:
CandidatesForSigningCertificate
-
getOrphanCertificateRefs
Description copied from class:TokenCertificateSourceReturns a list of orphan certificate refs- Overrides:
getOrphanCertificateRefsin classTokenCertificateSource- Returns:
- list of
CertificateRefs
-
getReferencesForCertificateToken
Description copied from class:TokenCertificateSourceReturns list ofCertificateRefs found for the givencertificateToken- Overrides:
getReferencesForCertificateTokenin classTokenCertificateSource- Parameters:
certificateToken-CertificateTokento find references for- Returns:
- list of
CertificateRefs
-
findTokensFromCertRef
Description copied from interface:CertificateSourceReturns Set ofCertificateTokens for the providedCertificateRef- Specified by:
findTokensFromCertRefin interfaceCertificateSource- Overrides:
findTokensFromCertRefin classCommonCertificateSource- Parameters:
certificateRef- aCertificateRef- Returns:
- Set of
CertificateTokens
-