org.jclouds.trmk.vcloud_0_8.compute.strategy
Class ParseVAppTemplateDescriptionToGetDefaultLoginCredentials

java.lang.Object
  extended by org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
      extended by 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

Field Summary
protected  Logger logger
           
static Pattern USER_PASSWORD_PATTERN
           
 
Fields inherited from class org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
credentialStore, creds
 
Constructor Summary
ParseVAppTemplateDescriptionToGetDefaultLoginCredentials(LoginCredentials creds, Map<String,Credentials> credentialStore)
           
 
Method Summary
 LoginCredentials apply(Object resourceToAuthenticate)
          Processes the cloud-specific resources to determine the login credentials.
 
Methods inherited from class org.jclouds.compute.strategy.impl.ReturnCredentialsBoundToImage
execute
 
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
 

Field Detail

logger

@Named(value="jclouds.compute")
protected Logger logger

USER_PASSWORD_PATTERN

public static final Pattern USER_PASSWORD_PATTERN
Constructor Detail

ParseVAppTemplateDescriptionToGetDefaultLoginCredentials

@Inject
public ParseVAppTemplateDescriptionToGetDefaultLoginCredentials(@Nullable@Named(value="image")
                                                                       LoginCredentials creds,
                                                                       Map<String,Credentials> credentialStore)
Method Detail

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.