class SSHFingerprintGenerator {

    public String fingerprint(final PublicKey key) throws ChecksumException {
        return this.fingerprint(new ByteArrayInputStream(
                new Buffer.PlainBuffer().putPublicKey(key).getCompactData()));
    }

}