public static class OpenSSHKnownHosts.HostEntry extends java.lang.Object implements OpenSSHKnownHosts.KnownHostEntry
| Modifier and Type | Field and Description |
|---|---|
protected java.security.PublicKey |
key |
protected KeyType |
type |
| Constructor and Description |
|---|
HostEntry(OpenSSHKnownHosts.Marker marker,
java.lang.String hostPart,
KeyType type,
java.security.PublicKey key) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(KeyType type,
java.lang.String host) |
boolean |
appliesTo(java.lang.String host) |
java.lang.String |
getFingerprint() |
protected java.lang.String |
getHostPart() |
java.lang.String |
getLine() |
KeyType |
getType() |
boolean |
verify(java.security.PublicKey key) |
protected final KeyType type
protected final java.security.PublicKey key
public HostEntry(OpenSSHKnownHosts.Marker marker, java.lang.String hostPart, KeyType type, java.security.PublicKey key) throws SSHException
SSHExceptionpublic KeyType getType()
getType in interface OpenSSHKnownHosts.KnownHostEntrypublic java.lang.String getFingerprint()
getFingerprint in interface OpenSSHKnownHosts.KnownHostEntrypublic boolean appliesTo(java.lang.String host)
throws java.io.IOException
appliesTo in interface OpenSSHKnownHosts.KnownHostEntryjava.io.IOExceptionpublic boolean appliesTo(KeyType type, java.lang.String host) throws java.io.IOException
appliesTo in interface OpenSSHKnownHosts.KnownHostEntryjava.io.IOExceptionpublic boolean verify(java.security.PublicKey key)
throws java.io.IOException
verify in interface OpenSSHKnownHosts.KnownHostEntryjava.io.IOExceptionpublic java.lang.String getLine()
getLine in interface OpenSSHKnownHosts.KnownHostEntryprotected java.lang.String getHostPart()