com.mindbright.ssh2
Class SSH2KeyFingerprint

java.lang.Object
  extended by com.mindbright.ssh2.SSH2KeyFingerprint

public final class SSH2KeyFingerprint
extends java.lang.Object

Contains static methods for calculating fingerprints on keys.


Constructor Summary
SSH2KeyFingerprint()
           
 
Method Summary
static java.lang.String bubbleBabble(byte[] blob)
          Calculates the bubble-babble checksum of the given blob.
static java.lang.String bubbleBabble(PublicKey key)
          Calculates the bubble-babble checksum of the given key.
static java.lang.String md5Hex(byte[] blob)
          Calculates the MD5 checksum of the given blob.
static java.lang.String md5Hex(PublicKey key)
          Calculates the MD5 checksum of the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSH2KeyFingerprint

public SSH2KeyFingerprint()
Method Detail

md5Hex

public static java.lang.String md5Hex(PublicKey key)
                               throws SSH2Exception
Calculates the MD5 checksum of the given key.

Parameters:
key - Key to calculate checksum of.
Returns:
The checksum expressed as a hexadecimal string.
Throws:
SSH2Exception

md5Hex

public static java.lang.String md5Hex(byte[] blob)
Calculates the MD5 checksum of the given blob.

Parameters:
blob - Data to calculate checksum of.
Returns:
The checksum expressed as a hexadecimal string.

bubbleBabble

public static java.lang.String bubbleBabble(PublicKey key)
                                     throws SSH2Exception
Calculates the bubble-babble checksum of the given key.

Parameters:
key - Key to calculate checksum of.
Returns:
The checksum expressed as a hexadecimal string.
Throws:
SSH2Exception

bubbleBabble

public static java.lang.String bubbleBabble(byte[] blob)
Calculates the bubble-babble checksum of the given blob.

Parameters:
blob - Data to calculate checksum of.
Returns:
The bubble-babble checksum string.