Class JdbcCacheOCSPSource

java.lang.Object
eu.europa.esig.dss.service.ocsp.JdbcCacheOCSPSource
All Implemented Interfaces:
Serializable

public class JdbcCacheOCSPSource extends Object
OCSPSource that retrieve information from a JDBC data-source.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    Represents an OCSP record extracted from the SQL database table
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>
    buildRevocationTokenFromResult(eu.europa.esig.dss.spi.client.jdbc.record.SqlRecord response, eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCert)
     
    void
     
    protected List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>>
    findRevocations(String arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, eu.europa.esig.dss.model.x509.CertificateToken arg2)
     
    protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery
     
    protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery
     
    protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery
     
    protected eu.europa.esig.dss.spi.client.jdbc.JdbcCacheConnector
     
    protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery
     
    protected List<String>
    getRevocationAccessUrls(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
     
    protected eu.europa.esig.dss.spi.client.jdbc.query.SqlSelectQuery
     
    protected String
    getRevocationSourceUrl(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
     
    eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken
    getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken)
     
    eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken
    getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken, boolean forceRefresh)
     
    protected String
    getRevocationTokenKey(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, String urlString)
     
    List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>>
    getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1)
     
    List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>>
    getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, boolean arg2)
     
    protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery
     
    protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery
     
    protected final List<String>
    initRevocationTokenKeys(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
     
    void
     
    protected void
    insertRevocation(String revocationKey, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> token)
     
    protected boolean
    isNotExpired(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1)
     
    boolean
     
    protected void
     
    void
     
    void
    setJdbcCacheConnector(eu.europa.esig.dss.spi.client.jdbc.JdbcCacheConnector arg0)
     
    void
     
    void
    setProxySource(eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg0)
     
    void
    setRemoveExpired(boolean arg0)
     
    protected void
    updateRevocation(String revocationKey, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> token)
    Updates the currently stored OCSP token for the given key with supplied token.

    Methods inherited from class Object

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

    • proxiedSource

      protected eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> proxiedSource
  • Constructor Details

    • JdbcCacheOCSPSource

      public JdbcCacheOCSPSource()
      Default constructor
  • Method Details

    • getCreateTableQuery

      protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery getCreateTableQuery()
    • getTableExistenceQuery

      protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery getTableExistenceQuery()
    • getDeleteTableQuery

      protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery getDeleteTableQuery()
    • getInsertRevocationTokenEntryQuery

      protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery getInsertRevocationTokenEntryQuery()
    • getUpdateRevocationTokenEntryQuery

      protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery getUpdateRevocationTokenEntryQuery()
    • getRemoveRevocationTokenEntryQuery

      protected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery getRemoveRevocationTokenEntryQuery()
    • getRevocationDataExtractQuery

      protected eu.europa.esig.dss.spi.client.jdbc.query.SqlSelectQuery getRevocationDataExtractQuery()
    • initRevocationTokenKeys

      protected final List<String> initRevocationTokenKeys(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
    • buildRevocationTokenFromResult

      protected eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> buildRevocationTokenFromResult(eu.europa.esig.dss.spi.client.jdbc.record.SqlRecord response, eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCert) throws eu.europa.esig.dss.spi.exception.DSSExternalResourceException
      Throws:
      eu.europa.esig.dss.spi.exception.DSSExternalResourceException
    • insertRevocation

      protected void insertRevocation(String revocationKey, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> token)
    • updateRevocation

      protected void updateRevocation(String revocationKey, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> token)
      Updates the currently stored OCSP token for the given key with supplied token.
      Parameters:
      revocationKey - String the key of the revocation data to be updated
      token - new OCSP token
    • getRevocationToken

      public eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken)
    • getRevocationToken

      public eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken, boolean forceRefresh)
    • getRevocationAccessUrls

      protected List<String> getRevocationAccessUrls(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
    • getRevocationTokenKey

      protected String getRevocationTokenKey(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, String urlString)
    • getJdbcCacheConnector

      protected eu.europa.esig.dss.spi.client.jdbc.JdbcCacheConnector getJdbcCacheConnector()
    • setJdbcCacheConnector

      public void setJdbcCacheConnector(eu.europa.esig.dss.spi.client.jdbc.JdbcCacheConnector arg0)
    • findRevocations

      protected List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> findRevocations(String arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, eu.europa.esig.dss.model.x509.CertificateToken arg2)
    • removeRevocation

      protected void removeRevocation(String arg0)
    • initTable

      public void initTable() throws SQLException
      Throws:
      SQLException
    • isTableExists

      public boolean isTableExists()
    • destroyTable

      public void destroyTable() throws SQLException
      Throws:
      SQLException
    • setDefaultNextUpdateDelay

      public void setDefaultNextUpdateDelay(Long arg0)
    • setMaxNextUpdateDelay

      public void setMaxNextUpdateDelay(Long arg0)
    • setProxySource

      public void setProxySource(eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg0)
    • setRemoveExpired

      public void setRemoveExpired(boolean arg0)
    • getRevocationTokens

      public List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1)
    • getRevocationTokens

      public List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, boolean arg2)
    • getRevocationSourceUrl

      protected String getRevocationSourceUrl(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
    • isNotExpired

      protected boolean isNotExpired(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1)