public class KeyFingerprinting extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
fingerprint(byte[] derEncoded)
Produces a fingerprint encoded in the standard key fingerprint method (with : characters separating each pair of
hexidecimal digits)
|
static String |
fingerprint(KeyPair keypair)
Returns a fingerprint of the private key of this keypair
|
static String |
fingerprint(PrivateKey key)
Returns a fingerprint of a private key
|
static String |
fingerprint(PublicKey key)
Returns a fingerprint of a public key (included for completeness)
|
static boolean |
fingerprintsEqual(String hexA,
String hexB)
Determines whether two fingerprints are equivalent
This method is useful in the case where one or more fingerprints are coming from an external source (and therefore it may or may not have : delimiters) |
public static String fingerprint(KeyPair keypair)
keypair - public static String fingerprint(PrivateKey key)
key - public static String fingerprint(PublicKey key)
key - public static String fingerprint(byte[] derEncoded)
derEncoded - public static boolean fingerprintsEqual(String hexA, String hexB)
hexA - A series of hexidecimal characters, optionally with : separators between two-digit pairshexB - A series of hexidecimal characters, optionally with : separators between two-digit pairsCopyright © 2015. All rights reserved.