public class SshKeyFingerprint extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SshKeyFingerprint.Encoding |
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 |
getBubbleBabble(byte[] encoded) |
static String |
getBubbleBabble(SshPublicKey key) |
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 String |
getFingerprint(byte[] encoded,
String algorithm,
SshKeyFingerprint.Encoding encoding) |
static String |
getFingerprint(SshPublicKey key) |
static String |
getFingerprint(SshPublicKey key,
String algorithm) |
static String |
getFingerprint(SshPublicKey key,
String algorithm,
SshKeyFingerprint.Encoding encoding) |
static void |
setDefaultEncoding(SshKeyFingerprint.Encoding encoding) |
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 void setDefaultHashAlgorithm(String defaultHashAlgorithm)
public static void setDefaultEncoding(SshKeyFingerprint.Encoding encoding)
public static String getFingerprint(SshPublicKey key)
key
- public static String getFingerprint(SshPublicKey key, String algorithm) throws SshException
key
- algorithm
- SshException
public static String getFingerprint(SshPublicKey key, String algorithm, SshKeyFingerprint.Encoding encoding) throws SshException
key
- algorithm
- encoding
- SshException
public static String getFingerprint(byte[] encoded) throws SshException
encoded
- SshException
public static String getFingerprint(byte[] encoded, String algorithm) throws SshException
encoded
- algorithm
- SshException
public static String getFingerprint(byte[] encoded, String algorithm, SshKeyFingerprint.Encoding encoding) throws SshException
encoded
- algorithm
- encoding
- SshException
public static String getBubbleBabble(SshPublicKey key)
key
- public static String getBubbleBabble(byte[] encoded)
encoded
- Copyright © 2024. All rights reserved.