org.jclouds.ec2.compute.strategy
Class EC2PopulateDefaultLoginCredentialsForImageStrategy
java.lang.Object
org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
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
Method Summary |
LoginCredentials |
apply(Object resourceToAuthenticate)
Processes the cloud-specific resources to determine the login credentials. |
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 |
EC2PopulateDefaultLoginCredentialsForImageStrategy
public EC2PopulateDefaultLoginCredentialsForImageStrategy()
EC2PopulateDefaultLoginCredentialsForImageStrategy
@Inject
public EC2PopulateDefaultLoginCredentialsForImageStrategy(@Nullable@Named(value="image")
LoginCredentials creds,
Map<String,Credentials> credentialStore)
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.