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="2025-10-15T17:00:47.759-07:00")
public class SshPublicKey
extends Object
Information about an SSH public key.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCrn()Getter for crn.Getter for description.Getter for publicKey.Getter for publicKeyFingerprint.inthashCode()voidSetter for crn.voidsetDescription(String description) Setter for description.voidsetPublicKey(String publicKey) Setter for publicKey.voidsetPublicKeyFingerprint(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
-