public class KeyPairInfo extends Object implements Serializable
Describes an Amazon EC2 key pair. This is a summary of the key pair data, and will not contain the actual private key material.
The private key material is only available when initially creating the key pair.
Constructor and Description |
---|
KeyPairInfo() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getKeyFingerprint()
The SHA-1 digest of the DER encoded 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 |
setKeyName(String keyName)
The name of the key pair.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyPairInfo |
withKeyFingerprint(String keyFingerprint)
The SHA-1 digest of the DER encoded private key.
|
KeyPairInfo |
withKeyName(String keyName)
The name of the key pair.
|
public String getKeyName()
public void setKeyName(String keyName)
keyName
- The name of the key pair.public KeyPairInfo withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- The name of the key pair.public String getKeyFingerprint()
public void setKeyFingerprint(String keyFingerprint)
keyFingerprint
- The SHA-1 digest of the DER encoded private key.public KeyPairInfo withKeyFingerprint(String keyFingerprint)
Returns a reference to this object so that method calls can be chained together.
keyFingerprint
- The SHA-1 digest of the DER encoded private key.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.