@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyPairInfo extends Object implements Serializable, Cloneable
Describes a key pair.
Constructor and Description |
---|
KeyPairInfo() |
Modifier and Type | Method and Description |
---|---|
KeyPairInfo |
clone() |
boolean |
equals(Object obj) |
String |
getKeyFingerprint()
If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key.
|
String |
getKeyName()
The name of the key pair.
|
int |
hashCode() |
void |
setKeyFingerprint(String keyFingerprint)
If you used CreateKeyPair to create the key pair, this is 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)
If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key.
|
KeyPairInfo |
withKeyName(String keyName)
The name of the key pair.
|
public void setKeyFingerprint(String keyFingerprint)
If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key fingerprint as specified in section 4 of RFC4716.
keyFingerprint
- If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded
private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key
fingerprint as specified in section 4 of RFC4716.public String getKeyFingerprint()
If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key fingerprint as specified in section 4 of RFC4716.
public KeyPairInfo withKeyFingerprint(String keyFingerprint)
If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key fingerprint as specified in section 4 of RFC4716.
keyFingerprint
- If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded
private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key
fingerprint as specified in section 4 of RFC4716.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 KeyPairInfo 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()
public KeyPairInfo clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.