Class HostKey

java.lang.Object
hudson.plugins.sshslaves.verifiers.HostKey
All Implemented Interfaces:
Serializable

public final class HostKey extends Object implements Serializable
A representation of the SSH key provided by a remote host to verify itself and secure the initial setup of the SSH connection.
Since:
1.13
Author:
Michael Clarke
See Also:
  • Constructor Details

    • HostKey

      public HostKey(String algorithm, byte[] key)
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Get the algorithm used during key generation.
      Returns:
      the algorithm used to generate the key, such as ssh-rsa.
    • getKey

      public byte[] getKey()
      Get the unencoded content of the key, without any algorithm prefix.
      Returns:
      a byte representation of the raw key value.
    • getFingerprint

      public String getFingerprint()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object