org.jclouds.trmk.vcloud_0_8.compute.strategy
Class ParseVAppTemplateDescriptionToGetDefaultLoginCredentials
java.lang.Object
org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
org.jclouds.trmk.vcloud_0_8.compute.strategy.ParseVAppTemplateDescriptionToGetDefaultLoginCredentials
- All Implemented Interfaces:
- com.google.common.base.Function<Object,LoginCredentials>, PopulateDefaultLoginCredentialsForImageStrategy
@Singleton
public class ParseVAppTemplateDescriptionToGetDefaultLoginCredentials
- extends ReturnCredentialsBoundToImage
- Author:
- Adrian Cole
Method Summary |
LoginCredentials |
apply(Object resourceToAuthenticate)
Processes the cloud-specific resources to determine the login credentials. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Function |
equals |
logger
@Named(value="jclouds.compute")
protected Logger logger
USER_PASSWORD_PATTERN
public static final Pattern USER_PASSWORD_PATTERN
ParseVAppTemplateDescriptionToGetDefaultLoginCredentials
@Inject
public ParseVAppTemplateDescriptionToGetDefaultLoginCredentials(@Nullable@Named(value="image")
LoginCredentials creds,
Map<String,Credentials> credentialStore)
apply
public 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,LoginCredentials>
- Specified by:
apply
in interface PopulateDefaultLoginCredentialsForImageStrategy
- Overrides:
apply
in class ReturnCredentialsBoundToImage
- Parameters:
resourceToAuthenticate
- this is the cloud-specific representation of the image object.
- Returns:
- credentials parsed from the image if not null
Copyright © 2009-2012 jclouds. All Rights Reserved.