@Singleton public class ReturnCredentialsBoundToImage extends Object implements PopulateDefaultLoginCredentialsForImageStrategy
Modifier and Type | Field and Description |
---|---|
protected Map<String,Credentials> |
credentialStore |
protected LoginCredentials |
creds |
Constructor and Description |
---|
ReturnCredentialsBoundToImage(LoginCredentials creds,
Map<String,Credentials> credentialStore) |
Modifier and Type | Method and Description |
---|---|
LoginCredentials |
apply(Object resourceToAuthenticate)
Processes the cloud-specific resources to determine the login credentials.
|
Credentials |
execute(Object resourceToAuthenticate)
will be removed in jclouds 1.4.0
|
protected final LoginCredentials creds
protected Map<String,Credentials> credentialStore
@Inject public ReturnCredentialsBoundToImage(@Nullable@Named(value="image") LoginCredentials creds, Map<String,Credentials> credentialStore)
public LoginCredentials apply(Object resourceToAuthenticate)
PopulateDefaultLoginCredentialsForImageStrategy
apply
in interface com.google.common.base.Function<Object,LoginCredentials>
apply
in interface PopulateDefaultLoginCredentialsForImageStrategy
resourceToAuthenticate
- this is the cloud-specific representation of the image object.public Credentials execute(Object resourceToAuthenticate)
PopulateDefaultLoginCredentialsForImageStrategy
execute
in interface PopulateDefaultLoginCredentialsForImageStrategy
resourceToAuthenticate
- this can be any resource, such as an image, running server
instance or other. It's the responsibility of an implementation
to apply the cloud-specific logic.Copyright © 2009-2012 jclouds. All Rights Reserved.