Entity Bean for SCT disk cache
It should have a find and add method. Those will be the only operations, since this is essentially a key-value cache.
Note that one key might have multiple values (multiple SCTs per certificate).
The database structure should basically be:
- [b64 string] certificate fingerprint
- [int] log id (mainly if we want to remove one log)
- [long] certificate expiration date (for cleaning up SCTs for expired certs)
- [b64 string] sct data (base64 encode the value into a clob)
primary key: certificate fingerprint + log id
index: certificate fingerprint