> + > +import com.google.common.base.Optional; > + > +@CredentialType(CredentialTypes.TOKEN_CREDENTIALS) > +@Singleton > +public class AuthenticateTokenCredentials extends > BaseAuthenticator<TokenCredentials> { > + protected final AuthenticationApi api; > + > + @Inject > + public AuthenticateTokenCredentials(AuthenticationApi api) { > + this.api = api; > + } > + > + @Override > + protected Access authenticateWithTenantName(Optional<String> tenantName, > TokenCredentials apiAccessKeyCredentials) { > + return > api.authenticateWithTenantNameAndCredentials(tenantName.orNull(), > apiAccessKeyCredentials);
Just curious..._can_ `tenantName` ever be null? What should happen in that case? And the name of the credential variable should probably be changed? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/433/files#r16929733