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 CertificateTokenaddCertificate(CertificateToken certificateToAdd)This method adds an external certificate to the source.CertificateTokenaddCertificate(String kid, CertificateToken certificate)Adds a certificate for a given 'kid' (JWS/JAdES)CertificateTokengetCertificateByKid(String kid)Gets aCertificateTokenby the given KIDprotected voidreset()Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
findTokensFromCertRef, getByCertificateDigest, getByCertificateIdentifier, getByPublicKey, getBySki, getBySubject, getCertificates, getCertificateSourceType, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isKnown, isTrustedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:CommonCertificateSourceThis method adds an external certificate to the source. If the public is already known, the certificate is merged in theCertificateSourceEntity- Specified by:
addCertificatein interfaceCertificateSource- Overrides:
addCertificatein 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 aCertificateTokenby the given KID- Parameters:
kid-Stringto get a certificate token with- Returns:
CertificateToken
-
reset
protected void reset()- Overrides:
resetin classCommonCertificateSource
-