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
Constructors Constructor Description EC2PopulateDefaultLoginCredentialsForImageStrategy()EC2PopulateDefaultLoginCredentialsForImageStrategy(LoginCredentials creds, Map<String,Credentials> credentialStore, Map<OsFamily,LoginCredentials> osFamilyToCredentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoginCredentialsapply(Object resourceToAuthenticate)Processes the cloud-specific resources to determine the login credentials.-
Methods inherited from class org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
toString
-
-
-
-
Constructor Detail
-
EC2PopulateDefaultLoginCredentialsForImageStrategy
public EC2PopulateDefaultLoginCredentialsForImageStrategy()
-
EC2PopulateDefaultLoginCredentialsForImageStrategy
@Inject public EC2PopulateDefaultLoginCredentialsForImageStrategy(@Nullable @Named("image") LoginCredentials creds, Map<String,Credentials> credentialStore, Map<OsFamily,LoginCredentials> osFamilyToCredentials)
-
-
Method Detail
-
apply
public LoginCredentials apply(Object resourceToAuthenticate)
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
-
-