public class KeyPairInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a key pair.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
keyFingerprint
If you used CreateKeyPair to create the key pair, this is the
SHA-1 digest of the DER encoded private key.
|
private java.lang.String |
keyName
The name of the key pair.
|
Constructor and Description |
---|
KeyPairInfo() |
Modifier and Type | Method and Description |
---|---|
KeyPairInfo |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKeyFingerprint()
If you used CreateKeyPair to create the key pair, this is the
SHA-1 digest of the DER encoded private key.
|
java.lang.String |
getKeyName()
The name of the key pair.
|
int |
hashCode() |
void |
setKeyFingerprint(java.lang.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(java.lang.String keyName)
The name of the key pair.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyPairInfo |
withKeyFingerprint(java.lang.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(java.lang.String keyName)
The name of the key pair.
|
private java.lang.String keyName
The name of the key pair.
private java.lang.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.
public void setKeyName(java.lang.String keyName)
The name of the key pair.
keyName
- The name of the key pair.public java.lang.String getKeyName()
The name of the key pair.
public KeyPairInfo withKeyName(java.lang.String keyName)
The name of the key pair.
keyName
- The name of the key pair.public void setKeyFingerprint(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public KeyPairInfo clone()
clone
in class java.lang.Object