After we resolve #334 We should also change AuthCredentials and replace protected abstract HttpRequestInitializer httpRequestInitializer with public abstract Credentials credentials() returning com.google.auth.Credentials.Credentials.
We should also change ServiceOptions.httpRequestInitializer to get the credentials from AuthCredentials and wrap them inside HttpCredentialsAdapter.
If we can't find a way to deal with the deferred scoping, we can consider returning GoogleCredentials
instead of credentials.
After we resolve #334 We should also change
AuthCredentialsand replaceprotected abstract HttpRequestInitializer httpRequestInitializerwithpublic abstract Credentials credentials()returningcom.google.auth.Credentials.Credentials.We should also change
ServiceOptions.httpRequestInitializerto get the credentials fromAuthCredentialsand wrap them insideHttpCredentialsAdapter.If we can't find a way to deal with the deferred scoping, we can consider returning
GoogleCredentialsinstead of
credentials.