public class KeyFingerprinting
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
fingerprint(byte[] derEncoded)
Produces a fingerprint encoded in the standard key fingerprint method (with : characters separating each pair of
hexidecimal digits)
|
static java.lang.String |
fingerprint(java.security.KeyPair keypair)
Returns a fingerprint of the private key of this keypair
|
static java.lang.String |
fingerprint(java.security.PrivateKey key)
Returns a fingerprint of a private key
|
static java.lang.String |
fingerprint(java.security.PublicKey key)
Returns a fingerprint of a public key (included for completeness)
|
static boolean |
fingerprintsEqual(java.lang.String hexA,
java.lang.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 java.lang.String fingerprint(java.security.KeyPair keypair)
keypair - public static java.lang.String fingerprint(java.security.PrivateKey key)
key - public static java.lang.String fingerprint(java.security.PublicKey key)
key - public static java.lang.String fingerprint(byte[] derEncoded)
derEncoded - public static boolean fingerprintsEqual(java.lang.String hexA,
java.lang.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 © 2014. All Rights Reserved.