Class KeyPairInfo
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a key pair.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key.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.toString()
Returns a string representation of this object; useful for testing and debugging.withKeyFingerprint
(String keyFingerprint) If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key.withKeyName
(String keyName) The name of the key pair.
-
Constructor Details
-
KeyPairInfo
public KeyPairInfo()
-
-
Method Details
-
setKeyName
The name of the key pair.
- Parameters:
keyName
- The name of the key pair.
-
getKeyName
The name of the key pair.
- Returns:
- The name of the key pair.
-
withKeyName
The name of the key pair.
- Parameters:
keyName
- The name of the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKeyFingerprint
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withKeyFingerprint
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-