| Modifier and Type | Field and Description |
|---|---|
| public static final NamedFactory | |
| private NamedFactory | |
| private byte[] | |
| public static final char | HASHED_HOST_DELIMITER
Character used to indicate a hashed host pattern |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <A extends Appendable> A | |
| public static <A extends Appendable> A | |
| public static <A extends Appendable> A | |
| public static byte[] | |
| public static byte[] | |
| public static String | |
| public NamedFactory | |
| public byte[] | |
| public byte[] | |
| public boolean | Returns: true if host matches the hashThe host name/address - ignored if host, int null/emptyThe access port - ignored if non-positive or SSH default port)Checks if the host matches the hash |
| public static KnownHostHashValue | |
| public static <V extends KnownHostHashValue> V | |
| public void | |
| public void | |
| public void | |
| public String |
| DEFAULT_DIGEST | back to summary |
|---|---|
| public static final NamedFactory<Mac> DEFAULT_DIGEST | |
| digester | back to summary |
|---|---|
| private NamedFactory<Mac> digester | |
| digestValue | back to summary |
|---|---|
| private byte[] digestValue | |
| HASHED_HOST_DELIMITER | back to summary |
|---|---|
| public static final char HASHED_HOST_DELIMITER Character used to indicate a hashed host pattern | |
| saltValue | back to summary |
|---|---|
| private byte[] saltValue | |
| KnownHostHashValue | back to summary |
|---|---|
| public KnownHostHashValue() | |
| append | back to summary |
|---|---|
| public static <A extends Appendable> A append(A sb, KnownHostHashValue hashValue) throws IOException | |
| append | back to summary |
|---|---|
| public static <A extends Appendable> A append(A sb, NamedResource factory, byte[] salt, byte[] digest) throws IOException | |
| appendHostPattern | back to summary |
|---|---|
| public static <A extends Appendable> A appendHostPattern(A sb, String host, int port) throws IOException | |
| calculateHashValue | back to summary |
|---|---|
| public static byte[] calculateHashValue(String host, int port, Factory<? extends Mac> factory, byte[] salt) throws Exception | |
| calculateHashValue | back to summary |
|---|---|
| public static byte[] calculateHashValue(String host, int port, Mac mac, byte[] salt) throws Exception | |
| createHostPattern | back to summary |
|---|---|
| public static String createHostPattern(String host, int port) | |
| getDigester | back to summary |
|---|---|
| public NamedFactory | |
| getDigestValue | back to summary |
|---|---|
| public byte[] getDigestValue() | |
| getSaltValue | back to summary |
|---|---|
| public byte[] getSaltValue() | |
| isHostMatch | back to summary |
|---|---|
| public boolean isHostMatch(String host, int port) Checks if the host matches the hash
| |
| parse | back to summary |
|---|---|
| public static KnownHostHashValue parse(String patternString) | |
| parse | back to summary |
|---|---|
| public static <V extends KnownHostHashValue> V parse(String patternString, V value) | |
| setDigester | back to summary |
|---|---|
| public void setDigester(NamedFactory<Mac> digester) | |
| setDigestValue | back to summary |
|---|---|
| public void setDigestValue(byte[] digestValue) | |
| setSaltValue | back to summary |
|---|---|
| public void setSaltValue(byte[] saltValue) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |