public static class OpenSSHKnownHosts.CommentEntry extends java.lang.Object implements OpenSSHKnownHosts.KnownHostEntry
| Constructor and Description |
|---|
CommentEntry(java.lang.String comment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(KeyType type,
java.lang.String host) |
boolean |
appliesTo(java.lang.String host) |
java.lang.String |
getFingerprint() |
java.lang.String |
getLine() |
KeyType |
getType() |
boolean |
verify(java.security.PublicKey key) |
public 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)
appliesTo in interface OpenSSHKnownHosts.KnownHostEntrypublic boolean verify(java.security.PublicKey key)
verify in interface OpenSSHKnownHosts.KnownHostEntrypublic java.lang.String getLine()
getLine in interface OpenSSHKnownHosts.KnownHostEntry