org.jclouds.ec2.compute.strategy
Class EC2PopulateDefaultLoginCredentialsForImageStrategy

java.lang.Object
  extended by org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
      extended by org.jclouds.ec2.compute.strategy.EC2PopulateDefaultLoginCredentialsForImageStrategy
All Implemented Interfaces:
com.google.common.base.Function<Object,LoginCredentials>, PopulateDefaultLoginCredentialsForImageStrategy

@Singleton
public class EC2PopulateDefaultLoginCredentialsForImageStrategy
extends ReturnCredentialsBoundToImage

Author:
Oleksiy Yarmula

Field Summary
 
Fields inherited from class org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
credentialStore, creds
 
Constructor Summary
EC2PopulateDefaultLoginCredentialsForImageStrategy()
           
EC2PopulateDefaultLoginCredentialsForImageStrategy(LoginCredentials creds, Map<String,Credentials> credentialStore)
           
 
Method Summary
 LoginCredentials apply(Object resourceToAuthenticate)
          Processes the cloud-specific resources to determine the login credentials.
 
Methods inherited from class org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
execute
 
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
 

Constructor Detail

EC2PopulateDefaultLoginCredentialsForImageStrategy

public EC2PopulateDefaultLoginCredentialsForImageStrategy()

EC2PopulateDefaultLoginCredentialsForImageStrategy

@Inject
public EC2PopulateDefaultLoginCredentialsForImageStrategy(@Nullable@Named(value="image")
                                                                 LoginCredentials creds,
                                                                 Map<String,Credentials> credentialStore)
Method Detail

apply

public LoginCredentials apply(Object resourceToAuthenticate)
Description copied from interface: PopulateDefaultLoginCredentialsForImageStrategy
Processes the cloud-specific resources to determine the login credentials.

Specified by:
apply in interface com.google.common.base.Function<Object,LoginCredentials>
Specified by:
apply in interface PopulateDefaultLoginCredentialsForImageStrategy
Overrides:
apply in class ReturnCredentialsBoundToImage
Parameters:
resourceToAuthenticate - this is the cloud-specific representation of the image object.
Returns:
credentials parsed from the image if not null


Copyright © 2009-2012 jclouds. All Rights Reserved.