Class JdbcCacheOCSPSource
java.lang.Object
eu.europa.esig.dss.service.ocsp.JdbcCacheOCSPSource
- All Implemented Interfaces:
Serializable
OCSPSource that retrieve information from a JDBC data-source.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classRepresents an OCSP record extracted from the SQL database table -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) voidprotected 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.SqlQueryprotected eu.europa.esig.dss.spi.client.jdbc.query.SqlQueryprotected eu.europa.esig.dss.spi.client.jdbc.query.SqlQueryprotected eu.europa.esig.dss.spi.client.jdbc.JdbcCacheConnectorprotected eu.europa.esig.dss.spi.client.jdbc.query.SqlQuerygetRevocationAccessUrls(eu.europa.esig.dss.model.x509.CertificateToken certificateToken) protected eu.europa.esig.dss.spi.client.jdbc.query.SqlSelectQueryprotected StringgetRevocationSourceUrl(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.OCSPTokengetRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken) eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPTokengetRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken, boolean forceRefresh) protected StringgetRevocationTokenKey(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.SqlQueryprotected eu.europa.esig.dss.spi.client.jdbc.query.SqlQueryinitRevocationTokenKeys(eu.europa.esig.dss.model.x509.CertificateToken certificateToken) voidprotected voidinsertRevocation(String revocationKey, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> token) protected booleanisNotExpired(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) booleanprotected voidremoveRevocation(String arg0) voidvoidsetJdbcCacheConnector(eu.europa.esig.dss.spi.client.jdbc.JdbcCacheConnector arg0) voidsetMaxNextUpdateDelay(Long arg0) voidsetProxySource(eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg0) voidsetRemoveExpired(boolean arg0) protected voidupdateRevocation(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 givenkeywith suppliedtoken.
-
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
-
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 givenkeywith suppliedtoken.- Parameters:
revocationKey-Stringthe key of the revocation data to be updatedtoken- 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
-
getRevocationTokenKey
-
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
-
removeRevocation
-
initTable
- Throws:
SQLException
-
isTableExists
public boolean isTableExists() -
destroyTable
- Throws:
SQLException
-
setDefaultNextUpdateDelay
-
setMaxNextUpdateDelay
-
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)
-