org.jclouds.compute.strategy.impl
Class ReturnCredentialsBoundToImage
java.lang.Object
org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
- All Implemented Interfaces:
- com.google.common.base.Function<Object,org.jclouds.domain.LoginCredentials>, PopulateDefaultLoginCredentialsForImageStrategy
@Singleton
public class ReturnCredentialsBoundToImage
- extends Object
- implements PopulateDefaultLoginCredentialsForImageStrategy
|
Method Summary |
org.jclouds.domain.LoginCredentials |
apply(Object resourceToAuthenticate)
Processes the cloud-specific resources to determine the login credentials. |
String |
toString()
|
| Methods inherited from interface com.google.common.base.Function |
equals |
creds
protected final org.jclouds.domain.LoginCredentials creds
credentialStore
protected final Map<String,org.jclouds.domain.Credentials> credentialStore
osFamilyToCredentials
protected final Map<OsFamily,org.jclouds.domain.LoginCredentials> osFamilyToCredentials
ReturnCredentialsBoundToImage
@Inject
public ReturnCredentialsBoundToImage(@Nullable@Named(value="image")
org.jclouds.domain.LoginCredentials creds,
Map<String,org.jclouds.domain.Credentials> credentialStore,
Map<OsFamily,org.jclouds.domain.LoginCredentials> osFamilyToCredentials)
apply
public org.jclouds.domain.LoginCredentials apply(Object resourceToAuthenticate)
- Description copied from interface:
PopulateDefaultLoginCredentialsForImageStrategy
- Processes the cloud-specific resources to determine the login credentials.
- Specified by:
apply in interface com.google.common.base.Function<Object,org.jclouds.domain.LoginCredentials>- Specified by:
apply in interface PopulateDefaultLoginCredentialsForImageStrategy
- Parameters:
resourceToAuthenticate - this is the cloud-specific representation of the image object.
- Returns:
- credentials parsed from the image if not null
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.