@Singleton public class ImportOrReturnExistingKeypair extends Object implements com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair>
Modifier and Type | Field and Description |
---|---|
protected AWSEC2Client |
ec2Client |
protected Logger |
logger |
Constructor and Description |
---|
ImportOrReturnExistingKeypair(AWSEC2Client ec2Client) |
Modifier and Type | Method and Description |
---|---|
KeyPair |
addFingerprintToKeyPair(String publicKeyMaterial,
KeyPair keyPair) |
KeyPair |
apply(RegionNameAndPublicKeyMaterial from) |
protected final AWSEC2Client ec2Client
@Inject public ImportOrReturnExistingKeypair(AWSEC2Client ec2Client)
public KeyPair apply(RegionNameAndPublicKeyMaterial from)
apply
in interface com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair>
Copyright © 2009-2012 jclouds. All Rights Reserved.