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 Details

    • SshPublicKey

      public SshPublicKey()
  • Method Details

    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object