org.jclouds.aws.ec2.functions
Class ImportOrReturnExistingKeypair
java.lang.Object
org.jclouds.aws.ec2.functions.ImportOrReturnExistingKeypair
- All Implemented Interfaces:
- com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair>
@Singleton
public class ImportOrReturnExistingKeypair
- extends Object
- implements com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair>
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Function |
equals |
logger
@Named(value="jclouds.compute")
protected Logger logger
ec2Client
protected final AWSEC2Client ec2Client
ImportOrReturnExistingKeypair
@Inject
public ImportOrReturnExistingKeypair(AWSEC2Client ec2Client)
apply
public KeyPair apply(RegionNameAndPublicKeyMaterial from)
- Specified by:
apply
in interface com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair>
addFingerprintToKeyPair
public KeyPair addFingerprintToKeyPair(String publicKeyMaterial,
KeyPair keyPair)
Copyright © 2009-2012 jclouds. All Rights Reserved.