org.jclouds.openstack.keystone.v2_0.functions
Class AuthenticatePasswordCredentials

java.lang.Object
  extended by org.jclouds.openstack.keystone.v2_0.functions.internal.BaseAuthenticator<PasswordCredentials>
      extended by org.jclouds.openstack.keystone.v2_0.functions.AuthenticatePasswordCredentials
All Implemented Interfaces:
com.google.common.base.Function<org.jclouds.domain.Credentials,Access>

@Singleton
public class AuthenticatePasswordCredentials
extends BaseAuthenticator<PasswordCredentials>


Field Summary
protected  AuthenticationApi api
           
 
Fields inherited from class org.jclouds.openstack.keystone.v2_0.functions.internal.BaseAuthenticator
defaultTenantId, defaultTenantName, logger, requiresTenant
 
Constructor Summary
AuthenticatePasswordCredentials(AuthenticationApi api)
           
 
Method Summary
protected  Access authenticateWithTenantId(com.google.common.base.Optional<String> tenantId, PasswordCredentials apiAccessKeyCredentials)
           
protected  Access authenticateWithTenantName(com.google.common.base.Optional<String> tenantName, PasswordCredentials apiAccessKeyCredentials)
           
 PasswordCredentials createCredentials(String identity, String credential)
           
 String toString()
           
 
Methods inherited from class org.jclouds.openstack.keystone.v2_0.functions.internal.BaseAuthenticator
apply, checkPropertiesAreCompatible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

api

protected final AuthenticationApi api
Constructor Detail

AuthenticatePasswordCredentials

@Inject
public AuthenticatePasswordCredentials(AuthenticationApi api)
Method Detail

authenticateWithTenantName

protected Access authenticateWithTenantName(com.google.common.base.Optional<String> tenantName,
                                            PasswordCredentials apiAccessKeyCredentials)
Specified by:
authenticateWithTenantName in class BaseAuthenticator<PasswordCredentials>

authenticateWithTenantId

protected Access authenticateWithTenantId(com.google.common.base.Optional<String> tenantId,
                                          PasswordCredentials apiAccessKeyCredentials)
Specified by:
authenticateWithTenantId in class BaseAuthenticator<PasswordCredentials>

createCredentials

public PasswordCredentials createCredentials(String identity,
                                             String credential)
Specified by:
createCredentials in class BaseAuthenticator<PasswordCredentials>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.