Class CommonX509URLCertificateSource

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

public class CommonX509URLCertificateSource extends Object implements X509URLCertificateSource
The common implementation of X509URLCertificateSource retrieving X.509 certificates by the given URI
See Also:
  • Field Details

    • certificateMatcher

      protected final transient eu.europa.esig.dss.spi.x509.CertificateTokenRefMatcher certificateMatcher
  • 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)
    • 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()
    • getCertificateSourceType

      eu.europa.esig.dss.enumerations.CertificateSourceType getCertificateSourceType()
    • getCertificates

      List<eu.europa.esig.dss.model.x509.CertificateToken> getCertificates()
    • isTrusted

      boolean isTrusted(eu.europa.esig.dss.model.x509.CertificateToken arg0)
    • isTrustedAtTime

      boolean isTrustedAtTime(eu.europa.esig.dss.model.x509.CertificateToken arg0, Date arg1)
    • isKnown

      boolean isKnown(eu.europa.esig.dss.model.x509.CertificateToken arg0)
    • getBySubject

      Set<eu.europa.esig.dss.model.x509.CertificateToken> getBySubject(eu.europa.esig.dss.model.x509.X500PrincipalHelper arg0)
    • getBySignerIdentifier

      Set<eu.europa.esig.dss.model.x509.CertificateToken> getBySignerIdentifier(eu.europa.esig.dss.spi.x509.SignerIdentifier arg0)
    • getByCertificateDigest

      Set<eu.europa.esig.dss.model.x509.CertificateToken> getByCertificateDigest(eu.europa.esig.dss.model.Digest arg0)
    • getByPublicKey

      Set<eu.europa.esig.dss.model.x509.CertificateToken> getByPublicKey(PublicKey arg0)
    • getByEntityKey

      Set<eu.europa.esig.dss.model.x509.CertificateToken> getByEntityKey(eu.europa.esig.dss.model.identifier.EntityIdentifier arg0)
    • getBySki

      Set<eu.europa.esig.dss.model.x509.CertificateToken> getBySki(byte[] arg0)
    • findTokensFromCertRef

      Set<eu.europa.esig.dss.model.x509.CertificateToken> findTokensFromCertRef(eu.europa.esig.dss.spi.x509.CertificateRef arg0)
    • getEntities

      List<eu.europa.esig.dss.spi.x509.CertificateSourceEntity> getEntities()
    • isAllSelfSigned

      boolean isAllSelfSigned()
    • isCertificateSourceEqual

      boolean isCertificateSourceEqual(eu.europa.esig.dss.spi.x509.CertificateSource arg0)
    • isCertificateSourceEquivalent

      boolean isCertificateSourceEquivalent(eu.europa.esig.dss.spi.x509.CertificateSource arg0)
    • removeCertificate

      protected void removeCertificate(eu.europa.esig.dss.model.x509.CertificateToken arg0)
    • isKnown

      public boolean isKnown(eu.europa.esig.dss.model.x509.CertificateToken arg0)
    • getCertificates

      public List<eu.europa.esig.dss.model.x509.CertificateToken> getCertificates()
    • getEntities

      public List<eu.europa.esig.dss.spi.x509.CertificateSourceEntity> getEntities()
    • getByPublicKey

      public Set<eu.europa.esig.dss.model.x509.CertificateToken> getByPublicKey(PublicKey arg0)
    • getByEntityKey

      public Set<eu.europa.esig.dss.model.x509.CertificateToken> getByEntityKey(eu.europa.esig.dss.model.identifier.EntityIdentifier arg0)
    • getBySki

      public Set<eu.europa.esig.dss.model.x509.CertificateToken> getBySki(byte[] arg0)
    • getBySubject

      public Set<eu.europa.esig.dss.model.x509.CertificateToken> getBySubject(eu.europa.esig.dss.model.x509.X500PrincipalHelper arg0)
    • getBySignerIdentifier

      public Set<eu.europa.esig.dss.model.x509.CertificateToken> getBySignerIdentifier(eu.europa.esig.dss.spi.x509.SignerIdentifier arg0)
    • getByCertificateDigest

      public Set<eu.europa.esig.dss.model.x509.CertificateToken> getByCertificateDigest(eu.europa.esig.dss.model.Digest arg0)
    • findTokensFromCertRef

      public Set<eu.europa.esig.dss.model.x509.CertificateToken> findTokensFromCertRef(eu.europa.esig.dss.spi.x509.CertificateRef arg0)
    • doesCertificateReferenceMatch

      protected boolean doesCertificateReferenceMatch(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.spi.x509.CertificateRef arg1)
    • getNumberOfCertificates

      public int getNumberOfCertificates()
    • getNumberOfEntities

      public int getNumberOfEntities()
    • getCertificateSourceType

      public eu.europa.esig.dss.enumerations.CertificateSourceType getCertificateSourceType()
    • isTrusted

      public boolean isTrusted(eu.europa.esig.dss.model.x509.CertificateToken arg0)
    • isTrustedAtTime

      public boolean isTrustedAtTime(eu.europa.esig.dss.model.x509.CertificateToken arg0, Date arg1)
    • isAllSelfSigned

      public boolean isAllSelfSigned()
    • isCertificateSourceEqual

      public boolean isCertificateSourceEqual(eu.europa.esig.dss.spi.x509.CertificateSource arg0)
    • isCertificateSourceEquivalent

      public boolean isCertificateSourceEquivalent(eu.europa.esig.dss.spi.x509.CertificateSource arg0)