in.ashwanthkumar.gocd.client.auth.PersonalAccessTokenAuthentication Maven / Gradle / Ivy
The newest version!
package in.ashwanthkumar.gocd.client.auth;
import com.google.api.client.http.HttpRequestFactory;
import com.google.api.client.http.HttpTransport;
public class PersonalAccessTokenAuthentication implements Authentication {
private String apiToken;
public PersonalAccessTokenAuthentication(String apiToken) {
this.apiToken = apiToken;
}
@Override
public HttpRequestFactory addAuthentication(HttpTransport transport) {
return transport.createRequestFactory(new BearerTokenAuthentication(apiToken));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy