net.named_data.jndn.encrypt
public abstract class ConsumerDb extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConsumerDb.Error
ConsumerDb.Error extends Exception for errors using ConsumerDb methods.
|
Constructor and Description |
---|
ConsumerDb() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addKey(Name keyName,
Blob keyBlob)
Add the key with keyName and keyBlob to the database.
|
abstract void |
deleteKey(Name keyName)
Delete the key with keyName from the database.
|
abstract Blob |
getKey(Name keyName)
Get the key with keyName from the database.
|
public abstract Blob getKey(Name keyName) throws ConsumerDb.Error
keyName
- The key name.ConsumerDb.Error
- for a database error.public abstract void addKey(Name keyName, Blob keyBlob) throws ConsumerDb.Error
keyName
- The key name.keyBlob
- The encoded key.ConsumerDb.Error
- if a key with the same keyName already exists in
the database, or other database error.public abstract void deleteKey(Name keyName) throws ConsumerDb.Error
keyName
- The key name.ConsumerDb.Error
- for a database error.Copyright © 2016. All rights reserved.