Class ReturnCredentialsBoundToImage
- java.lang.Object
-
- org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
-
- All Implemented Interfaces:
com.google.common.base.Function<Object,LoginCredentials>,Function<Object,LoginCredentials>,PopulateDefaultLoginCredentialsForImageStrategy
- Direct Known Subclasses:
EC2PopulateDefaultLoginCredentialsForImageStrategy
@Singleton public class ReturnCredentialsBoundToImage extends Object implements PopulateDefaultLoginCredentialsForImageStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Credentials>credentialStoreprotected LoginCredentialscredsprotected Map<OsFamily,LoginCredentials>osFamilyToCredentials
-
Constructor Summary
Constructors Constructor Description ReturnCredentialsBoundToImage(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.StringtoString()
-
-
-
Field Detail
-
creds
protected final LoginCredentials creds
-
credentialStore
protected final Map<String,Credentials> credentialStore
-
osFamilyToCredentials
protected final Map<OsFamily,LoginCredentials> osFamilyToCredentials
-
-
Constructor Detail
-
ReturnCredentialsBoundToImage
@Inject public ReturnCredentialsBoundToImage(@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- Parameters:
resourceToAuthenticate- this is the cloud-specific representation of the image object.- Returns:
- credentials parsed from the image if not null
-
-