Class KeyUtils

java.lang.Object
org.jenkinsci.remoting.util.KeyUtils

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

    • equals

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

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