public class SshKeyFingerprint extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MD5_FINGERPRINT |
static String |
SHA1_FINGERPRINT |
static String |
SHA256_FINGERPRINT |
Constructor and Description |
---|
SshKeyFingerprint() |
Modifier and Type | Method and Description |
---|---|
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.
|
static void |
setDefaultHashAlgorithm(String defaultHashAlgorithm) |
public static final String MD5_FINGERPRINT
public static final String SHA1_FINGERPRINT
public static final String SHA256_FINGERPRINT
public static String getFingerprint(byte[] encoded) throws SshException
encoded
- SshException
public static void setDefaultHashAlgorithm(String defaultHashAlgorithm)
public static String getFingerprint(byte[] encoded, String algorithm) throws SshException
encoded
- algorithm
- SshException
Copyright © 2014. All rights reserved.