@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyPair extends Object implements Serializable, Cloneable
Describes a key pair.
Constructor and Description |
---|
KeyPair() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
clone() |
boolean |
equals(Object obj) |
String |
getKeyFingerprint()
The SHA-1 digest of the DER encoded private key.
|
String |
getKeyMaterial()
An unencrypted PEM encoded RSA private key.
|
String |
getKeyName()
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
KeyPair |
withKeyFingerprint(String keyFingerprint)
The SHA-1 digest of the DER encoded private key.
|
KeyPair |
withKeyMaterial(String keyMaterial)
An unencrypted PEM encoded RSA private key.
|
KeyPair |
withKeyName(String keyName)
The name of the key pair.
|
public void setKeyFingerprint(String keyFingerprint)
The SHA-1 digest of the DER encoded private key.
keyFingerprint
- The SHA-1 digest of the DER encoded private key.public String getKeyFingerprint()
The SHA-1 digest of the DER encoded private key.
public KeyPair withKeyFingerprint(String keyFingerprint)
The SHA-1 digest of the DER encoded private key.
keyFingerprint
- The SHA-1 digest of the DER encoded private key.public void setKeyMaterial(String keyMaterial)
An unencrypted PEM encoded RSA private key.
keyMaterial
- An unencrypted PEM encoded RSA private key.public String getKeyMaterial()
An unencrypted PEM encoded RSA private key.
public KeyPair withKeyMaterial(String keyMaterial)
An unencrypted PEM encoded RSA private key.
keyMaterial
- An unencrypted PEM encoded RSA private key.public void setKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public String getKeyName()
The name of the key pair.
public KeyPair withKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.