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,org.jclouds.ec2.domain.KeyPair>

@Singleton
public class ImportOrReturnExistingKeypair
extends Object
implements com.google.common.base.Function<RegionNameAndPublicKeyMaterial,org.jclouds.ec2.domain.KeyPair>


Field Summary
protected  AWSEC2Api ec2Api
           
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
ImportOrReturnExistingKeypair(AWSEC2Api ec2Api)
           
 
Method Summary
 org.jclouds.ec2.domain.KeyPair addFingerprintToKeyPair(String publicKeyMaterial, org.jclouds.ec2.domain.KeyPair keyPair)
           
 org.jclouds.ec2.domain.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 org.jclouds.logging.Logger logger

ec2Api

protected final AWSEC2Api ec2Api
Constructor Detail

ImportOrReturnExistingKeypair

@Inject
public ImportOrReturnExistingKeypair(AWSEC2Api ec2Api)
Method Detail

apply

public org.jclouds.ec2.domain.KeyPair apply(RegionNameAndPublicKeyMaterial from)
Specified by:
apply in interface com.google.common.base.Function<RegionNameAndPublicKeyMaterial,org.jclouds.ec2.domain.KeyPair>

addFingerprintToKeyPair

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.