public interface IdentityRepository
Modifier and Type | Interface and Description |
---|---|
static class |
IdentityRepository.Wrapper
JSch will accept ciphered keys, but some implementations of
IdentityRepository can not.
|
Modifier and Type | Field and Description |
---|---|
static int |
NOTRUNNING |
static int |
RUNNING |
static int |
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.
|
static final int UNAVAILABLE
static final int NOTRUNNING
static final int RUNNING
String getName()
int getStatus()
UNAVAILABLE
, NOTRUNNING
and RUNNING
.Vector getIdentities()
Identity
objects.
This will be used by the library when implementing public key authentication.boolean add(byte[] identity)
identity
- the key, encoded as a byte[].boolean remove(byte[] blob)
blob
- the identity's public key, encoded as a byte[].void removeAll()
This is a simplified version of the inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.