org.jclouds.openstack.config
Class OpenStackAuthenticationModule.GetAuthenticationResponse

java.lang.Object
  extended by org.jclouds.openstack.config.OpenStackAuthenticationModule.GetAuthenticationResponse
All Implemented Interfaces:
com.google.common.base.Supplier<OpenStackAuthAsyncClient.AuthenticationResponse>
Direct Known Subclasses:
SwiftRestClientModule.GetAuthenticationResponseForStorage
Enclosing class:
OpenStackAuthenticationModule

@Singleton
public static class OpenStackAuthenticationModule.GetAuthenticationResponse
extends Object
implements com.google.common.base.Supplier<OpenStackAuthAsyncClient.AuthenticationResponse>


Field Summary
protected  OpenStackAuthAsyncClient client
           
protected  String key
           
protected  String user
           
 
Constructor Summary
OpenStackAuthenticationModule.GetAuthenticationResponse(AsyncClientFactory factory, String user, String key)
           
 
Method Summary
protected  Future<OpenStackAuthAsyncClient.AuthenticationResponse> authenticate()
           
 OpenStackAuthAsyncClient.AuthenticationResponse get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected final OpenStackAuthAsyncClient client

user

protected final String user

key

protected final String key
Constructor Detail

OpenStackAuthenticationModule.GetAuthenticationResponse

@Inject
public OpenStackAuthenticationModule.GetAuthenticationResponse(AsyncClientFactory factory,
                                                                      @Named(value="jclouds.identity")
                                                                      String user,
                                                                      @Named(value="jclouds.credential")
                                                                      String key)
Method Detail

get

public OpenStackAuthAsyncClient.AuthenticationResponse get()
Specified by:
get in interface com.google.common.base.Supplier<OpenStackAuthAsyncClient.AuthenticationResponse>

authenticate

protected Future<OpenStackAuthAsyncClient.AuthenticationResponse> authenticate()


Copyright © 2009-2011 jclouds. All Rights Reserved.