com.maverick.ssh
Class SshKeyFingerprint
java.lang.Object
com.maverick.ssh.SshKeyFingerprint
public class SshKeyFingerprint
- extends Object
Utility methods to generate an SSH public key fingerprint.
- Author:
- Lee David Painter
|
Method Summary |
static String |
getFingerprint(byte[] encoded)
Generate an SSH key fingerprint as defined in
draft-ietf-secsh-fingerprint-00.txt. |
static String |
getFingerprint(byte[] encoded,
String algorithm)
Generate an SSH key fingerprint with a specific algorithm. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MD5_FINGERPRINT
public static final String MD5_FINGERPRINT
- See Also:
- Constant Field Values
SHA1_FINGERPRINT
public static final String SHA1_FINGERPRINT
- See Also:
- Constant Field Values
SHA256_FINGERPRINT
public static final String SHA256_FINGERPRINT
- See Also:
- Constant Field Values
SshKeyFingerprint
public SshKeyFingerprint()
getFingerprint
public static String getFingerprint(byte[] encoded)
throws SshException
- Generate an SSH key fingerprint as defined in
draft-ietf-secsh-fingerprint-00.txt.
- Parameters:
encoded -
- Returns:
- the key fingerprint, for example "c1:b1:30:29:d7:b8:de:6c:97:77:10:d7:46:41:63:87"
- Throws:
SshException
getFingerprint
public static String getFingerprint(byte[] encoded,
String algorithm)
throws SshException
- Generate an SSH key fingerprint with a specific algorithm.
- Parameters:
encoded - algorithm -
- Returns:
- the key fingerprint, for example "c1:b1:30:29:d7:b8:de:6c:97:77:10:d7:46:41:63:87"
- Throws:
SshException
Copyright © 2012. All Rights Reserved.