org.jclouds.compute.strategy
Interface PopulateDefaultLoginCredentialsForImageStrategy

All Superinterfaces:
com.google.common.base.Function<Object,LoginCredentials>
All Known Implementing Classes:
EC2PopulateDefaultLoginCredentialsForImageStrategy, ParseVAppTemplateDescriptionToGetDefaultLoginCredentials, ReturnCredentialsBoundToImage

public interface PopulateDefaultLoginCredentialsForImageStrategy
extends com.google.common.base.Function<Object,LoginCredentials>

Author:
Oleksiy Yarmula

Method Summary
 LoginCredentials apply(Object image)
          Processes the cloud-specific resources to determine the login credentials.
 Credentials execute(Object resourceToAuthenticate)
          Deprecated. 
 
Methods inherited from interface com.google.common.base.Function
equals
 

Method Detail

execute

@Deprecated
Credentials execute(Object resourceToAuthenticate)
Deprecated. 

will be removed in jclouds 1.4.0


Processes the resource to determine credentials.

Parameters:
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.
Returns:
credentials object. Note: the key may not be set, but the identity must be set

apply

LoginCredentials apply(Object image)
Processes the cloud-specific resources to determine the login credentials.

Specified by:
apply in interface com.google.common.base.Function<Object,LoginCredentials>
Parameters:
image - 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.