Skip to content

Commit 704a8f0

Browse files
committed
cleanup
1 parent c1a6d19 commit 704a8f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/com/samourai/wallet/api/backend/BackendApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public class BackendApi implements OAuthApi {
2727
private String urlBackend;
2828
private OAuthManager oAuthManager;
2929

30-
public BackendApi(IBackendClient httpClient, String urlBackend, OAuthManager oAuthManager) {
30+
public BackendApi(IBackendClient httpClient, String urlBackend, String apiKey) {
3131
this.httpClient = httpClient;
3232
this.urlBackend = urlBackend;
33-
this.oAuthManager = oAuthManager; // may be null
33+
this.oAuthManager = (apiKey != null ? new OAuthManager(apiKey) : null);
3434
if (log.isDebugEnabled()) {
3535
String oAuthStr = oAuthManager != null ? "yes" : "no";
3636
log.debug("urlBackend=" + urlBackend + ", oAuth=" + oAuthStr);

0 commit comments

Comments
 (0)