Interface HostKeyRepository
public interface HostKeyRepository
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a host keyhostkeyintChecks ifhostis included with thekey.HostKey[]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.Returns id of this repository.voidRemoves a host key if there exists mached key withhost,type.voidRemoves a host key if there exists a matched key withhost,typeandkey.
-
Field Details
-
OK
static final int OK- See Also:
-
NOT_INCLUDED
static final int NOT_INCLUDED- See Also:
-
CHANGED
static final int CHANGED- See Also:
-
-
Method Details
-
check
Checks ifhostis included with thekey.- Returns:
- #NOT_INCLUDED, #OK or #CHANGED
- See Also:
-
add
-
remove
-
remove
-
getKnownHostsRepositoryID
-
getHostKey
-
getHostKey
Retuns a list for host keys managed in this repository.- Parameters:
host- a hostname used in searching host keys. Ifnullis 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". Ifnullis given, a key type type will not be ignored.
-