Package hudson.plugins.ec2.ssh.verifiers
Class HostKey
- java.lang.Object
-
- hudson.plugins.ec2.ssh.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:
- TODO
- Author:
- Michael Clarke, M Ramon Leon
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAlgorithm()
Get the algorithm used during key generation.String
getFingerprint()
byte[]
getKey()
Get the unencoded content of the key, without any algorithm prefix.int
hashCode()
-
-
-
Constructor Detail
-
HostKey
public HostKey(@NonNull String algorithm, @NonNull byte[] key)
-
-
Method Detail
-
getAlgorithm
@NonNull public String getAlgorithm()
Get the algorithm used during key generation.- Returns:
- the algorithm used to generate the key, such as ssh-rsa.
-
getKey
@NonNull 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()
-
-