net.named_data.jndn.encrypt
public abstract class GroupManagerDb extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GroupManagerDb.Error
GroupManagerDb.Error extends Exception for errors using GroupManagerDb
methods.
|
Constructor and Description |
---|
GroupManagerDb() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addMember(String scheduleName,
Name keyName,
Blob key)
Add a new member with the given key named keyName into a schedule named
scheduleName.
|
abstract void |
addSchedule(String name,
Schedule schedule)
Add a schedule with the given name.
|
abstract void |
deleteMember(Name identity)
Delete a member with the given identity name.
|
abstract void |
deleteSchedule(String name)
Delete the schedule with the given name.
|
abstract String |
getMemberSchedule(Name identity)
Get the name of the schedule for the given member's identity name.
|
abstract Schedule |
getSchedule(String name)
Get a schedule with the given name.
|
abstract Map |
getScheduleMembers(String name)
For each member using the given schedule, get the name and public key DER
of the member's key.
|
abstract boolean |
hasMember(Name identity)
Check if there is a member with the given identity name.
|
abstract boolean |
hasSchedule(String name)
Check if there is a schedule with the given name.
|
abstract List |
listAllMembers()
List all the members.
|
abstract List |
listAllScheduleNames()
List all the names of the schedules.
|
abstract void |
renameSchedule(String oldName,
String newName)
Rename a schedule with oldName to newName.
|
abstract void |
updateMemberSchedule(Name identity,
String scheduleName)
Change the name of the schedule for the given member's identity name.
|
abstract void |
updateSchedule(String name,
Schedule schedule)
Update the schedule with name and replace the old object with the given
schedule.
|
public abstract boolean hasSchedule(String name) throws GroupManagerDb.Error
name
- The name of the schedule.GroupManagerDb.Error
- for a database error.public abstract List listAllScheduleNames() throws GroupManagerDb.Error
GroupManagerDb.Error
- for a database error.public abstract Schedule getSchedule(String name) throws GroupManagerDb.Error
name
- The name of the schedule.GroupManagerDb.Error
- if the schedule does not exist or other
database error.public abstract Map getScheduleMembers(String name) throws GroupManagerDb.Error
name
- The name of the schedule.GroupManagerDb.Error
- for a database error.public abstract void addSchedule(String name, Schedule schedule) throws GroupManagerDb.Error
name
- The name of the schedule. The name cannot be empty.schedule
- The Schedule to add.GroupManagerDb.Error
- if a schedule with the same name already exists,
if the name is empty, or other database error.public abstract void deleteSchedule(String name) throws GroupManagerDb.Error
name
- The name of the schedule.GroupManagerDb.Error
- for a database error.public abstract void renameSchedule(String oldName, String newName) throws GroupManagerDb.Error
oldName
- The name of the schedule to be renamed.newName
- The new name of the schedule. The name cannot be empty.GroupManagerDb.Error
- If a schedule with newName already exists, if
the schedule with oldName does not exist, if newName is empty, or other
database error.public abstract void updateSchedule(String name, Schedule schedule) throws GroupManagerDb.Error
name
- The name of the schedule. The name cannot be empty.schedule
- The Schedule to update or add.GroupManagerDb.Error
- if the name is empty, or other database error.public abstract boolean hasMember(Name identity) throws GroupManagerDb.Error
identity
- The member's identity name.GroupManagerDb.Error
- for a database error.public abstract List listAllMembers() throws GroupManagerDb.Error
GroupManagerDb.Error
- for a database error.public abstract String getMemberSchedule(Name identity) throws GroupManagerDb.Error
identity
- The member's identity name.GroupManagerDb.Error
- if there's no member with the given identity
name in the database, or other database error.public abstract void addMember(String scheduleName, Name keyName, Blob key) throws GroupManagerDb.Error
scheduleName
- The schedule name.keyName
- The name of the key.key
- A Blob of the public key DER.GroupManagerDb.Error
- If there's no schedule named scheduleName, if
the member's identity name already exists, or other database error.public abstract void updateMemberSchedule(Name identity, String scheduleName) throws GroupManagerDb.Error
identity
- The member's identity name.scheduleName
- The new schedule name.GroupManagerDb.Error
- if there's no member with the given identity
name in the database, or there's no schedule named scheduleName, or other
database error.public abstract void deleteMember(Name identity) throws GroupManagerDb.Error
identity
- The member's identity name.GroupManagerDb.Error
- for a database error.Copyright © 2016. All rights reserved.