org.jclouds.aws.ec2.functions
Class ImportOrReturnExistingKeypair

java.lang.Object
  extended by 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

Field Summary
protected  AWSEC2Client ec2Client
           
protected  Logger logger
           
 
Constructor Summary
ImportOrReturnExistingKeypair(AWSEC2Client ec2Client)
           
 
Method Summary
 KeyPair addFingerprintToKeyPair(String publicKeyMaterial, KeyPair keyPair)
           
 KeyPair apply(RegionNameAndPublicKeyMaterial from)
           
 
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
 

Field Detail

logger

@Named(value="jclouds.compute")
protected Logger logger

ec2Client

protected final AWSEC2Client ec2Client
Constructor Detail

ImportOrReturnExistingKeypair

@Inject
public ImportOrReturnExistingKeypair(AWSEC2Client ec2Client)
Method Detail

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.