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-03-13T13:08:48.192-07:00") public class SshPublicKey extends Object
Information about an SSH public key.
-
-
Constructor Summary
Constructors Constructor Description SshPublicKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCrn()
Getter for crn.String
getDescription()
Getter for description.String
getPublicKey()
Getter for publicKey.String
getPublicKeyFingerprint()
Getter for publicKeyFingerprint.int
hashCode()
void
setCrn(String crn)
Setter for crn.void
setDescription(String description)
Setter for description.void
setPublicKey(String publicKey)
Setter for publicKey.void
setPublicKeyFingerprint(String publicKeyFingerprint)
Setter for publicKeyFingerprint.String
toString()
-
-
-
Method Detail
-
getCrn
public String getCrn()
Getter for crn. The SSH public key CRN.
-
setCrn
public void setCrn(String crn)
Setter for crn. The SSH public key CRN.
-
getPublicKeyFingerprint
public String 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
public void setPublicKeyFingerprint(String publicKeyFingerprint)
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
public String getDescription()
Getter for description. An optional description for the public key.
-
setDescription
public void setDescription(String description)
Setter for description. An optional description for the public key.
-
getPublicKey
public String 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
public void setPublicKey(String publicKey)
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.
-
-