public static class IdentityRepository.Wrapper extends Object implements IdentityRepository
IdentityRepository.WrapperNOTRUNNING, RUNNING, UNAVAILABLE| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte[] identity)
Adds a new identity to this repository, in the form of the raw (unencrypted) private key bytes.
|
Vector |
getIdentities()
Returns all the identies of this repository, in the form of a vector of
Identity objects. |
String |
getName()
The name of the repository instance.
|
int |
getStatus()
The status of the repository instance.
|
boolean |
remove(byte[] blob)
Removes an identy from the repository, given the public key.
|
void |
removeAll()
Removes all identities from this repository.
|
public String getName()
IdentityRepositorygetName in interface IdentityRepositorypublic int getStatus()
IdentityRepositorygetStatus in interface IdentityRepositoryIdentityRepository.UNAVAILABLE, IdentityRepository.NOTRUNNING and IdentityRepository.RUNNING.public boolean add(byte[] identity)
IdentityRepositoryadd in interface IdentityRepositoryidentity - the key, encoded as a byte[].public boolean remove(byte[] blob)
IdentityRepositoryremove in interface IdentityRepositoryblob - the identity's public key, encoded as a byte[].public void removeAll()
IdentityRepositoryremoveAll in interface IdentityRepositorypublic Vector getIdentities()
IdentityRepositoryIdentity objects.
This will be used by the library when implementing public key authentication.getIdentities in interface IdentityRepositoryThis is an inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.