Package 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> Function<Object,,LoginCredentials> PopulateDefaultLoginCredentialsForImageStrategy
@Singleton
public class EC2PopulateDefaultLoginCredentialsForImageStrategy
extends ReturnCredentialsBoundToImage
-
Field Summary
Fields inherited from class org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
credentialStore, creds, osFamilyToCredentials -
Constructor Summary
ConstructorsConstructorDescriptionEC2PopulateDefaultLoginCredentialsForImageStrategy(LoginCredentials creds, Map<String, Credentials> credentialStore, Map<OsFamily, LoginCredentials> osFamilyToCredentials) -
Method Summary
Modifier and TypeMethodDescriptionProcesses the cloud-specific resources to determine the login credentials.Methods inherited from class org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
EC2PopulateDefaultLoginCredentialsForImageStrategy
public EC2PopulateDefaultLoginCredentialsForImageStrategy() -
EC2PopulateDefaultLoginCredentialsForImageStrategy
@Inject public EC2PopulateDefaultLoginCredentialsForImageStrategy(@Nullable @Named("image") LoginCredentials creds, Map<String, Credentials> credentialStore, Map<OsFamily, LoginCredentials> osFamilyToCredentials)
-
-
Method Details
-
apply
Description copied from interface:PopulateDefaultLoginCredentialsForImageStrategyProcesses the cloud-specific resources to determine the login credentials.- Specified by:
applyin interfacecom.google.common.base.Function<Object,LoginCredentials> - Specified by:
applyin interfaceFunction<Object,LoginCredentials> - Specified by:
applyin interfacePopulateDefaultLoginCredentialsForImageStrategy- Overrides:
applyin classReturnCredentialsBoundToImage- Parameters:
resourceToAuthenticate- this is the cloud-specific representation of the image object.- Returns:
- credentials parsed from the image if not null
-