public abstract static class OpenSSHKnownHosts.AbstractEntry extends java.lang.Object implements OpenSSHKnownHosts.HostEntry
| Modifier and Type | Field and Description |
|---|---|
protected java.security.PublicKey |
key |
protected OpenSSHKnownHosts.Marker |
marker |
protected KeyType |
type |
| Constructor and Description |
|---|
AbstractEntry(OpenSSHKnownHosts.Marker marker,
KeyType type,
java.security.PublicKey key) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFingerprint() |
protected abstract java.lang.String |
getHostPart() |
java.lang.String |
getLine() |
KeyType |
getType() |
boolean |
verify(java.security.PublicKey key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappliesTo, appliesToprotected final OpenSSHKnownHosts.Marker marker
protected final KeyType type
protected final java.security.PublicKey key
public AbstractEntry(OpenSSHKnownHosts.Marker marker, KeyType type, java.security.PublicKey key)
public KeyType getType()
getType in interface OpenSSHKnownHosts.HostEntrypublic java.lang.String getFingerprint()
getFingerprint in interface OpenSSHKnownHosts.HostEntrypublic boolean verify(java.security.PublicKey key)
throws java.io.IOException
verify in interface OpenSSHKnownHosts.HostEntryjava.io.IOExceptionpublic java.lang.String getLine()
getLine in interface OpenSSHKnownHosts.HostEntryprotected abstract java.lang.String getHostPart()