public abstract class PublicKeyStore extends Object
Constructor and Description |
---|
PublicKeyStore() |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
fetchPublicKey(String threemaId)
Fetch the public key for the given Threema ID from the store.
|
byte[] |
getPublicKey(String threemaId)
Get the public key for a given Threema ID.
|
protected abstract void |
save(String threemaId,
byte[] publicKey)
Save the public key for a given Threema ID in the store.
|
void |
setPublicKey(String threemaId,
byte[] publicKey)
Store the public key for a given Threema ID in the cache, and the underlying store.
|
public final byte[] getPublicKey(String threemaId)
threemaId
- The Threema ID whose public key should be obtainedpublic final void setPublicKey(String threemaId, byte[] publicKey)
threemaId
- The Threema ID whose public key should be storedpublicKey
- The corresponding public key.protected abstract byte[] fetchPublicKey(String threemaId)
threemaId
- The Threema ID whose public key should be obtainedprotected abstract void save(String threemaId, byte[] publicKey)
threemaId
- The Threema ID whose public key should be storedpublicKey
- The corresponding public key.Copyright © 2015 Threema GmbH, Staldenbachstrasse 11, 8808 Pfäffikon SZ, Schweiz. All rights reserved.