@Singleton public class ImportOrReturnExistingKeypair extends Object implements com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair>
| Modifier and Type | Field and Description |
|---|---|
protected AWSEC2Api |
ec2Api |
protected Logger |
logger |
| Constructor and Description |
|---|
ImportOrReturnExistingKeypair(AWSEC2Api ec2Api) |
| Modifier and Type | Method and Description |
|---|---|
KeyPair |
addFingerprintToKeyPair(String publicKeyMaterial,
KeyPair keyPair) |
KeyPair |
apply(RegionNameAndPublicKeyMaterial from) |
@Named(value="jclouds.compute") protected Logger logger
protected final AWSEC2Api ec2Api
@Inject public ImportOrReturnExistingKeypair(AWSEC2Api ec2Api)
public KeyPair apply(RegionNameAndPublicKeyMaterial from)
apply in interface com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair>Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.