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