Package com.cloudera.cdp.iam.model
Class SshPublicKey
java.lang.Object
com.cloudera.cdp.iam.model.SshPublicKey
@Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen",
date="2024-09-27T08:40:27.842-07:00")
public class SshPublicKey
extends Object
Information about an SSH public key.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCrn()
Getter for crn.Getter for description.Getter for publicKey.Getter for publicKeyFingerprint.int
hashCode()
void
Setter for crn.void
setDescription
(String description) Setter for description.void
setPublicKey
(String publicKey) Setter for publicKey.void
setPublicKeyFingerprint
(String publicKeyFingerprint) Setter for publicKeyFingerprint.toString()
-
Constructor Details
-
SshPublicKey
public SshPublicKey()
-
-
Method Details
-
getCrn
Getter for crn. The SSH public key CRN. -
setCrn
Setter for crn. The SSH public key CRN. -
getPublicKeyFingerprint
Getter for publicKeyFingerprint. The SSH public key SHA256 fingerprint. This is identical to the SHA256 produced by running the following command on a public key named 'key.pub'; ssh-keygen -l -E SHA256 -f /home/user/.ssh/key.pub. Note that ssh-keygen removes any padding bytes from the BASE64 fingerprint encoding (the '=' characters at the end of the fingerprint) which is also true for this fingerprint. -
setPublicKeyFingerprint
Setter for publicKeyFingerprint. The SSH public key SHA256 fingerprint. This is identical to the SHA256 produced by running the following command on a public key named 'key.pub'; ssh-keygen -l -E SHA256 -f /home/user/.ssh/key.pub. Note that ssh-keygen removes any padding bytes from the BASE64 fingerprint encoding (the '=' characters at the end of the fingerprint) which is also true for this fingerprint. -
getDescription
Getter for description. An optional description for the public key. -
setDescription
Setter for description. An optional description for the public key. -
getPublicKey
Getter for publicKey. The SSH public key string. Only populated for DescribeSshPublicKeyResponses. This is the same string that was used when the key was added. -
setPublicKey
Setter for publicKey. The SSH public key string. Only populated for DescribeSshPublicKeyResponses. This is the same string that was used when the key was added. -
equals
-
hashCode
public int hashCode() -
toString
-