Class BearerTokenAuthentication

  • All Implemented Interfaces:
    com.google.api.client.http.HttpExecuteInterceptor, com.google.api.client.http.HttpRequestInitializer

    public class BearerTokenAuthentication
    extends Object
    implements com.google.api.client.http.HttpRequestInitializer, com.google.api.client.http.HttpExecuteInterceptor
    • Constructor Detail

      • BearerTokenAuthentication

        public BearerTokenAuthentication​(String apiToken)
    • Method Detail

      • intercept

        public void intercept​(com.google.api.client.http.HttpRequest httpRequest)
                       throws IOException
        Specified by:
        intercept in interface com.google.api.client.http.HttpExecuteInterceptor
        Throws:
        IOException
      • initialize

        public void initialize​(com.google.api.client.http.HttpRequest httpRequest)
                        throws IOException
        Specified by:
        initialize in interface com.google.api.client.http.HttpRequestInitializer
        Throws:
        IOException