com.bandwidth.AuthManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-sdk Show documentation
Show all versions of bandwidth-sdk Show documentation
The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.bandwidth;
import com.bandwidth.exceptions.ApiException;
import com.bandwidth.http.request.HttpRequest;
import java.io.IOException;
import java.util.concurrent.CompletableFuture;
/**
* Interface for defining the behavior of Authentication Classes.
*/
public interface AuthManager {
/**
* Adds authentication to the given HttpRequest.
* @param httpRequest HttpRequest object for authentication
* @return Returns the object of HttpRequest
* @throws ApiException Represents error response from the server.
* @throws IOException Signals that an I/O exception of some sort has occurred.
*/
HttpRequest apply(HttpRequest httpRequest) throws ApiException, IOException;
/**
* Asynchronously adds authentication to the given HttpRequest.
* @param httpRequest HttpRequest object for authentication
* @return Returns the completable future of HttpRequest
*/
CompletableFuture applyAsync(HttpRequest httpRequest);
}