C - API Client classpublic abstract class AuthorizedTestBuilderAuthentication<C> extends AbstractTestBuilderAuthentication<C>
| Constructor and Description |
|---|
AuthorizedTestBuilderAuthentication(AbstractTestBuilder<C> testBuilder,
AccessTokenProvider accessTokenProvider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected C |
createClient()
Creates ApiClient authenticated by access token provided by the access token provider
|
protected abstract C |
createClient(String accessToken)
Creates ApiClient authenticated by the given access token
|
getTestBuilderpublic AuthorizedTestBuilderAuthentication(AbstractTestBuilder<C> testBuilder, AccessTokenProvider accessTokenProvider)
testBuilder - testBuilderaccessTokenProvider - access token builderprotected C createClient() throws IOException
createClient in class AbstractTestBuilderAuthentication<C>IOException - thrown when access token generation failsCopyright © 2019 Metatavu Oy. All rights reserved.