|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.KeyPair
public class KeyPair
Describes an Amazon EC2 key pair, including the private key material.
The public key portion is stored by Amazon EC2 and the private key is returned only once, in this type, when the key is initially created.
Constructor Summary | |
---|---|
KeyPair()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getKeyFingerprint()
The SHA-1 digest of the DER encoded private key. |
String |
getKeyMaterial()
The 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)
The 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)
The unencrypted PEM encoded RSA private key. |
KeyPair |
withKeyName(String keyName)
The name of the key pair. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KeyPair()
Method Detail |
---|
public String getKeyName()
public void setKeyName(String keyName)
keyName
- The name of the key pair.public KeyPair 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 KeyPair 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 getKeyMaterial()
public void setKeyMaterial(String keyMaterial)
keyMaterial
- The unencrypted PEM encoded RSA private key.public KeyPair withKeyMaterial(String keyMaterial)
Returns a reference to this object so that method calls can be chained together.
keyMaterial
- The unencrypted PEM encoded RSA private key.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |