public static class IdentityRepository.Wrapper extends Object implements IdentityRepository
IdentityRepository.Wrapper
NOTRUNNING, 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()
IdentityRepository
getName
in interface IdentityRepository
public int getStatus()
IdentityRepository
getStatus
in interface IdentityRepository
IdentityRepository.UNAVAILABLE
, IdentityRepository.NOTRUNNING
and IdentityRepository.RUNNING
.public boolean add(byte[] identity)
IdentityRepository
add
in interface IdentityRepository
identity
- the key, encoded as a byte[].public boolean remove(byte[] blob)
IdentityRepository
remove
in interface IdentityRepository
blob
- the identity's public key, encoded as a byte[].public void removeAll()
IdentityRepository
removeAll
in interface IdentityRepository
public Vector getIdentities()
IdentityRepository
Identity
objects.
This will be used by the library when implementing public key authentication.getIdentities
in interface IdentityRepository
This is a simplified version of the inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.