Class KeyUtils

  • public final class KeyUtils
    extends Object
    Utility methods to help working with Key instances.
    • Method Detail

      • equals

        public static boolean equals​(Key key1,
                                     Key key2)
        Check two keys for equality.
        key1 - the first key.
        key2 - the second key.
        true if we can confirm that the two keys are identical, false otherwise.
      • fingerprint

        public static String fingerprint​(@CheckForNull
                                         Key key)
        Returns the MD5 fingerprint of a key formatted in the normal way for key fingerprints
        key - the key.
        the MD5 fingerprint of the key.