@Beta public class MockTokenServerTransport extends MockHttpTransport
Beta
MockHttpTransport.Builder
Constructor and Description |
---|
MockTokenServerTransport() |
MockTokenServerTransport(String tokenServerUrl) |
Modifier and Type | Method and Description |
---|---|
void |
addClient(String clientId,
String clientSecret) |
void |
addRefreshToken(String refreshToken,
String accessTokenToReturn) |
void |
addServiceAccount(String email,
String accessToken) |
LowLevelHttpRequest |
buildRequest(String method,
String url) |
getLowLevelHttpRequest, getSupportedMethods, supportsMethod
createRequestFactory, createRequestFactory, isMtls, shutdown
public MockTokenServerTransport()
public MockTokenServerTransport(String tokenServerUrl)
public LowLevelHttpRequest buildRequest(String method, String url) throws IOException
buildRequest
in class MockHttpTransport
IOException
Copyright © 2010–2022 Google. All rights reserved.