public class EC2PrivateKey extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
com.amazonaws.services.ec2.model.KeyPair |
find(com.amazonaws.services.ec2.AmazonEC2 ec2)
Finds the
KeyPairInfo that corresponds to this key in EC2. |
String |
getFingerprint()
Obtains the fingerprint of the key in the "ab:cd:ef:...:12" format.
|
String |
getPrivateKey() |
String |
getPublicFingerprint() |
int |
hashCode() |
boolean |
isPrivateKey()
Is this file really a private key?
|
String |
toString() |
public String getPrivateKey()
public String getFingerprint() throws IOException
IOException
public String getPublicFingerprint() throws IOException
IOException
public boolean isPrivateKey() throws IOException
IOException
public com.amazonaws.services.ec2.model.KeyPair find(com.amazonaws.services.ec2.AmazonEC2 ec2) throws IOException, com.amazonaws.AmazonClientException
KeyPairInfo
that corresponds to this key in EC2.IOException
com.amazonaws.AmazonClientException
Copyright © 2004-2016. All Rights Reserved.