public interface GetPubkey
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.
|
DSAPublicKey getKey(byte[] hash, boolean canReadClientCache, boolean forULPR, BlockMetadata meta)
hash
- The hash of the public key. Normally from an SSK.canReadClientCache
- If this is a local request, we can read the client-cache.canWriteDatastore
- If this is a request with high HTL, we can't promote it.void cacheKey(byte[] hash, DSAPublicKey key, boolean deep, boolean canWriteClientCache, boolean canWriteDatastore, boolean forULPR, boolean writeLocalToDatastore)
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.forULPR
-