forked from gooddata/gooddata-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAuthentication.java
More file actions
24 lines (20 loc) · 813 Bytes
/
Copy pathAuthentication.java
File metadata and controls
24 lines (20 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
* Copyright (C) 2004-2017, GoodData(R) Corporation. All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
package com.gooddata;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
/**
* User authentication strategy. See https://developer.gooddata.com/api#/reference/authentication/log-in
*/
public interface Authentication {
/**
* Authenticate user
* @param endpoint GoodData Platform's endpoint
* @param httpClientBuilder http client builder
* @return Http client with provided authentication means
*/
HttpClient createHttpClient(final GoodDataEndpoint endpoint, final HttpClientBuilder httpClientBuilder);
}