public class EC2PrivateKey extends Object
Modifier and Type | Method and Description |
---|---|
String |
decryptWindowsPassword(String encodedPassword) |
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() |
Secret |
getPrivateKeySecret() |
String |
getPublicFingerprint() |
int |
hashCode() |
boolean |
isPrivateKey()
Is this file really a private key?
|
String |
toString() |
public String getPrivateKey()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Secret getPrivateKeySecret()
public String getFingerprint() throws IOException
IOException
- if the underlying private key is invalid: empty or password protected
(password protected private keys are not yet supported)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
public String decryptWindowsPassword(String encodedPassword) throws com.amazonaws.AmazonClientException
com.amazonaws.AmazonClientException
Copyright © 2016–2022. All rights reserved.