Package com.amazonaws.services.ec2.model
Class KeyPair
java.lang.Object
com.amazonaws.services.ec2.model.KeyPair
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a key pair.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The SHA-1 digest of the DER encoded private key.An unencrypted PEM encoded RSA private key.The name of the key pair.int
hashCode()
void
setKeyFingerprint
(String keyFingerprint) The SHA-1 digest of the DER encoded private key.void
setKeyMaterial
(String keyMaterial) An unencrypted PEM encoded RSA private key.void
setKeyName
(String keyName) The name of the key pair.toString()
Returns a string representation of this object; useful for testing and debugging.withKeyFingerprint
(String keyFingerprint) The SHA-1 digest of the DER encoded private key.withKeyMaterial
(String keyMaterial) An unencrypted PEM encoded RSA private key.withKeyName
(String keyName) The name of the key pair.
-
Constructor Details
-
KeyPair
public KeyPair()
-
-
Method Details
-
setKeyName
The name of the key pair.
- Parameters:
keyName
- The name of the key pair.
-
getKeyName
The name of the key pair.
- Returns:
- The name of the key pair.
-
withKeyName
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
The SHA-1 digest of the DER encoded private key.
- Parameters:
keyFingerprint
- The SHA-1 digest of the DER encoded private key.
-
getKeyFingerprint
The SHA-1 digest of the DER encoded private key.
- Returns:
- The SHA-1 digest of the DER encoded private key.
-
withKeyFingerprint
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
An unencrypted PEM encoded RSA private key.
- Parameters:
keyMaterial
- An unencrypted PEM encoded RSA private key.
-
getKeyMaterial
An unencrypted PEM encoded RSA private key.
- Returns:
- An unencrypted PEM encoded RSA private key.
-
withKeyMaterial
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-