Modifier and Type | Method and Description |
---|---|
void |
cacheKey(byte[] hash,
DSAPublicKey key,
boolean deep,
boolean canWriteClientCache,
boolean canWriteDatastore,
boolean forULPR,
boolean writeLocalToDatastore)
Cache a public key.
|
DSAPublicKey |
getKey(byte[] hash,
boolean canReadClientCache,
boolean forULPR,
BlockMetadata meta)
Get a public key by hash.
|
void |
setLocalDataStore(PubkeyStore pubKeyClientcache) |
void |
setLocalSlashdotcache(PubkeyStore pubKeySlashdotcache) |
public DSAPublicKey getKey(byte[] hash, boolean canReadClientCache, boolean forULPR, BlockMetadata meta)
GetPubkey
public void cacheKey(byte[] hash, DSAPublicKey key, boolean deep, boolean canWriteClientCache, boolean canWriteDatastore, boolean forULPR, boolean writeLocalToDatastore)
GetPubkey
cacheKey
in interface GetPubkey
hash
- The hash of the public key.key
- The key to store.deep
- If true, we can store to the datastore rather than the cache.canWriteClientCache
- If true, we can write to the client-cache. Only set if the
request originated locally, and the client-cache option hasn't been turned off.canWriteDatastore
- If false, we cannot *write to* the store or the cache. This
happens for high initial HTL on both local requests and requests started relatively
nearby.public void setLocalDataStore(PubkeyStore pubKeyClientcache)
public void setLocalSlashdotcache(PubkeyStore pubKeySlashdotcache)