> +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);
> +   }
> +
> +   @Override
> +   protected Access authenticateWithTenantId(Optional<String> tenantId, 
> TokenCredentials apiAccessKeyCredentials) {
> +      return api.authenticateWithTenantIdAndCredentials(tenantId.orNull(), 
> apiAccessKeyCredentials);

See comment above.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/433/files#r16929734

Reply via email to