Class KidCertificateSource

java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.jades.validation.KidCertificateSource
All Implemented Interfaces:
eu.europa.esig.dss.spi.x509.CertificateSource, Serializable

public class KidCertificateSource extends eu.europa.esig.dss.spi.x509.CommonCertificateSource
The certificate source containing a map of certificates by KIDs
See Also:
  • Field Summary

    Fields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource

    certificateMatcher
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor instantiating object with empty map of 'kid' identifiers and certificate tokens relation
  • Method Summary

    Modifier and Type
    Method
    Description
    eu.europa.esig.dss.model.x509.CertificateToken
    addCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificateToAdd)
     
    eu.europa.esig.dss.model.x509.CertificateToken
    addCertificate(String kid, eu.europa.esig.dss.model.x509.CertificateToken certificate)
    Adds a certificate for a given 'kid' (JWS/JAdES)
    eu.europa.esig.dss.model.x509.CertificateToken
    Gets a CertificateToken by the given KID
    protected void
     

    Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource

    doesCertificateReferenceMatch, findTokensFromCertRef, getByCertificateDigest, getByEntityKey, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getCertificateSourceType, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted, isTrustedAtTime, removeCertificate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KidCertificateSource

      public KidCertificateSource()
      Default constructor instantiating object with empty map of 'kid' identifiers and certificate tokens relation
  • Method Details

    • addCertificate

      public eu.europa.esig.dss.model.x509.CertificateToken addCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificateToAdd)
      Specified by:
      addCertificate in interface eu.europa.esig.dss.spi.x509.CertificateSource
      Overrides:
      addCertificate in class eu.europa.esig.dss.spi.x509.CommonCertificateSource
    • addCertificate

      public eu.europa.esig.dss.model.x509.CertificateToken addCertificate(String kid, eu.europa.esig.dss.model.x509.CertificateToken certificate)
      Adds a certificate for a given 'kid' (JWS/JAdES)
      Parameters:
      kid - the used kid in the JWS/JAdES
      certificate - the related certificate token
      Returns:
      the certificate
    • getCertificateByKid

      public eu.europa.esig.dss.model.x509.CertificateToken getCertificateByKid(String kid)
      Gets a CertificateToken by the given KID
      Parameters:
      kid - String to get a certificate token with
      Returns:
      CertificateToken
    • reset

      protected void reset()
      Overrides:
      reset in class eu.europa.esig.dss.spi.x509.CommonCertificateSource