Class KidCertificateSource
java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.jades.validation.KidCertificateSource
- All Implemented Interfaces:
CertificateSource
,Serializable
public class KidCertificateSource extends CommonCertificateSource implements CertificateSource
The certificate source containing a map of certificates by KIDs
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher
-
Constructor Summary
Constructors Constructor Description KidCertificateSource()
-
Method Summary
Modifier and Type Method Description CertificateToken
addCertificate(CertificateToken certificateToAdd)
This method adds an external certificate to the source.CertificateToken
addCertificate(String kid, CertificateToken certificate)
Adds a certificate for a given 'kid' (JWS/JAdES)CertificateToken
getCertificateByKid(String kid)
Gets aCertificateToken
by the given KIDprotected void
reset()
Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
findTokensFromCertRef, getByCertificateDigest, getByCertificateIdentifier, getByPublicKey, getBySki, getBySubject, getCertificates, getCertificateSourceType, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isKnown, isTrusted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.spi.x509.CertificateSource
findTokensFromCertRef, getByCertificateDigest, getByCertificateIdentifier, getByPublicKey, getBySki, getBySubject, getCertificates, getCertificateSourceType, getEntities, isAllSelfSigned, isKnown, isTrusted
-
Constructor Details
-
KidCertificateSource
public KidCertificateSource()
-
-
Method Details
-
addCertificate
Description copied from class:CommonCertificateSource
This method adds an external certificate to the source. If the public is already known, the certificate is merged in theCertificateSourceEntity
- Specified by:
addCertificate
in interfaceCertificateSource
- Overrides:
addCertificate
in classCommonCertificateSource
- Parameters:
certificateToAdd
- the certificate to be added- Returns:
- the corresponding certificate token
-
addCertificate
Adds a certificate for a given 'kid' (JWS/JAdES)- Parameters:
kid
- the used kid in the JWS/JAdEScertificate
- the related certificate token- Returns:
- the certificate
-
getCertificateByKid
Gets aCertificateToken
by the given KID- Parameters:
kid
-String
to get a certificate token with- Returns:
CertificateToken
-
reset
protected void reset()- Overrides:
reset
in classCommonCertificateSource
-