Class 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 Detail

      • SshPublicKey

        public SshPublicKey()
    • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object