Class CommonX509URLCertificateSource

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

public class CommonX509URLCertificateSource extends eu.europa.esig.dss.spi.x509.CommonCertificateSource implements X509URLCertificateSource
The common implementation of X509URLCertificateSource retrieving X.509 certificates by the given URI
See Also:
  • Field Summary

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

    certificateMatcher
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • 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 uri, eu.europa.esig.dss.model.x509.CertificateToken certificate)
    Adds a certificate for a given 'x5u' URL (JWS/JAdES)
    Collection<eu.europa.esig.dss.model.x509.CertificateToken>
    addCertificates(String uri, Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificates)
    Adds a collection of certificates for a given 'x5u' URL (JWS/JAdES)
    Collection<eu.europa.esig.dss.model.x509.CertificateToken>
    Gets a collection of CertificateTokens retrieved from the given URI
    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

    Methods inherited from interface eu.europa.esig.dss.spi.x509.CertificateSource

    findTokensFromCertRef, getByCertificateDigest, getByEntityKey, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getCertificateSourceType, getEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted, isTrustedAtTime
  • Constructor Details

    • CommonX509URLCertificateSource

      public CommonX509URLCertificateSource()
      Default constructor
  • 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 uri, eu.europa.esig.dss.model.x509.CertificateToken certificate)
      Adds a certificate for a given 'x5u' URL (JWS/JAdES)
      Parameters:
      uri - the used URI in the JWS/JAdES
      certificate - the related certificate token
      Returns:
      the certificate
    • addCertificates

      public Collection<eu.europa.esig.dss.model.x509.CertificateToken> addCertificates(String uri, Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificates)
      Adds a collection of certificates for a given 'x5u' URL (JWS/JAdES)
      Parameters:
      uri - the used URI in the JWS/JAdES
      certificates - a collection of CertificateTokens
      Returns:
      the certificate
    • getCertificatesByUrl

      public Collection<eu.europa.esig.dss.model.x509.CertificateToken> getCertificatesByUrl(String uri)
      Description copied from interface: X509URLCertificateSource
      Gets a collection of CertificateTokens retrieved from the given URI
      Specified by:
      getCertificatesByUrl in interface X509URLCertificateSource
      Parameters:
      uri - String to get a certificate tokens from
      Returns:
      a collection of CertificateTokens
    • reset

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