Class BearerTokenAuthentication
- java.lang.Object
-
- in.ashwanthkumar.gocd.client.auth.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 Summary
Constructors Constructor Description BearerTokenAuthentication(String apiToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(com.google.api.client.http.HttpRequest httpRequest)voidintercept(com.google.api.client.http.HttpRequest httpRequest)
-
-
-
Constructor Detail
-
BearerTokenAuthentication
public BearerTokenAuthentication(String apiToken)
-
-
Method Detail
-
intercept
public void intercept(com.google.api.client.http.HttpRequest httpRequest) throws IOException- Specified by:
interceptin interfacecom.google.api.client.http.HttpExecuteInterceptor- Throws:
IOException
-
initialize
public void initialize(com.google.api.client.http.HttpRequest httpRequest) throws IOException- Specified by:
initializein interfacecom.google.api.client.http.HttpRequestInitializer- Throws:
IOException
-
-