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
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:PopulateDefaultLoginCredentialsForImageStrategy
Processes the cloud-specific resources to determine the login credentials.- Specified by:
apply
in interfacecom.google.common.base.Function<Object,
LoginCredentials> - Specified by:
apply
in interfaceFunction<Object,
LoginCredentials> - Specified by:
apply
in interfacePopulateDefaultLoginCredentialsForImageStrategy
- Overrides:
apply
in classReturnCredentialsBoundToImage
- Parameters:
resourceToAuthenticate
- this is the cloud-specific representation of the image object.- Returns:
- credentials parsed from the image if not null
-