Class KeyPair

java.lang.Object
com.amazonaws.services.ec2.model.KeyPair
All Implemented Interfaces:
Serializable, Cloneable

public class KeyPair extends Object implements Serializable, Cloneable

Describes a key pair.

See Also:
  • Constructor Details

    • KeyPair

      public KeyPair()
  • Method Details

    • setKeyName

      public void setKeyName(String keyName)

      The name of the key pair.

      Parameters:
      keyName - The name of the key pair.
    • getKeyName

      public String getKeyName()

      The name of the key pair.

      Returns:
      The name of the key pair.
    • withKeyName

      public KeyPair withKeyName(String keyName)

      The name of the key pair.

      Parameters:
      keyName - The name of the key pair.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setKeyFingerprint

      public void setKeyFingerprint(String keyFingerprint)

      The SHA-1 digest of the DER encoded private key.

      Parameters:
      keyFingerprint - The SHA-1 digest of the DER encoded private key.
    • getKeyFingerprint

      public String getKeyFingerprint()

      The SHA-1 digest of the DER encoded private key.

      Returns:
      The SHA-1 digest of the DER encoded private key.
    • withKeyFingerprint

      public KeyPair withKeyFingerprint(String keyFingerprint)

      The SHA-1 digest of the DER encoded private key.

      Parameters:
      keyFingerprint - The SHA-1 digest of the DER encoded private key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setKeyMaterial

      public void setKeyMaterial(String keyMaterial)

      An unencrypted PEM encoded RSA private key.

      Parameters:
      keyMaterial - An unencrypted PEM encoded RSA private key.
    • getKeyMaterial

      public String getKeyMaterial()

      An unencrypted PEM encoded RSA private key.

      Returns:
      An unencrypted PEM encoded RSA private key.
    • withKeyMaterial

      public KeyPair withKeyMaterial(String keyMaterial)

      An unencrypted PEM encoded RSA private key.

      Parameters:
      keyMaterial - An unencrypted PEM encoded RSA private key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

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

      public KeyPair clone()
      Overrides:
      clone in class Object