use of org.whispersystems.signalservice.api.storage.StorageAuthResponse in project Signal-Android by WhisperSystems.
the class PushServiceSocket method getStorageAuth.
public String getStorageAuth() throws IOException {
String response = makeServiceRequest("/v1/storage/auth", "GET", null);
StorageAuthResponse authResponse = JsonUtil.fromJson(response, StorageAuthResponse.class);
return Credentials.basic(authResponse.getUsername(), authResponse.getPassword());
}
use of org.whispersystems.signalservice.api.storage.StorageAuthResponse in project Signal-Android by signalapp.
the class PushServiceSocket method getStorageAuth.
public String getStorageAuth() throws IOException {
String response = makeServiceRequest("/v1/storage/auth", "GET", null);
StorageAuthResponse authResponse = JsonUtil.fromJson(response, StorageAuthResponse.class);
return Credentials.basic(authResponse.getUsername(), authResponse.getPassword());
}
Aggregations