|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HostKeyRepository
Field Summary | |
---|---|
static int |
CHANGED
|
static int |
NOT_INCLUDED
|
static int |
OK
|
Method Summary | |
---|---|
void |
add(HostKey hostkey,
UserInfo ui)
Adds a host key hostkey |
int |
check(String host,
byte[] key)
Checks if host is included with the key . |
HostKey[] |
getHostKey()
Retuns a list for host keys managed in this repository. |
HostKey[] |
getHostKey(String host,
String type)
Retuns a list for host keys managed in this repository. |
String |
getKnownHostsRepositoryID()
Returns id of this repository. |
void |
remove(String host,
String type)
Removes a host key if there exists mached key with host , type . |
void |
remove(String host,
String type,
byte[] key)
Removes a host key if there exists a matched key with host , type and key . |
Field Detail |
---|
static final int OK
static final int NOT_INCLUDED
static final int CHANGED
Method Detail |
---|
int check(String host, byte[] key)
host
is included with the key
.
NOT_INCLUDED
,
OK
,
CHANGED
void add(HostKey hostkey, UserInfo ui)
hostkey
hostkey
- a host key to be addedui
- a user interface for showing messages or promping inputs.UserInfo
void remove(String host, String type)
host
, type
.
remove(String host, String type, byte[] key)
void remove(String host, String type, byte[] key)
host
, type
and key
.
String getKnownHostsRepositoryID()
HostKey[] getHostKey()
getHostKey(String host, String type)
HostKey[] getHostKey(String host, String type)
host
- a hostname used in searching host keys.
If null
is given, every host key will be listed.type
- a key type used in searching host keys,
and it should be "ssh-dss" or "ssh-rsa".
If null
is given, a key type type will not be ignored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |