Package com.bandwidth
Interface AuthManager
- All Known Implementing Classes:
MessagingBasicAuthManager
,TwoFactorAuthBasicAuthManager
,VoiceBasicAuthManager
,WebRtcBasicAuthManager
public interface AuthManager
Interface for defining the behavior of Authentication Classes.
-
Method Summary
Modifier and Type Method Description HttpRequest
apply(HttpRequest httpRequest)
Adds authentication to the given HttpRequest.java.util.concurrent.CompletableFuture<HttpRequest>
applyAsync(HttpRequest httpRequest)
Asynchronously adds authentication to the given HttpRequest.
-
Method Details
-
apply
Adds authentication to the given HttpRequest.- Parameters:
httpRequest
- HttpRequest object for authentication- Returns:
- Returns the object of HttpRequest
- Throws:
ApiException
- Represents error response from the server.java.io.IOException
- Signals that an I/O exception of some sort has occurred.
-
applyAsync
Asynchronously adds authentication to the given HttpRequest.- Parameters:
httpRequest
- HttpRequest object for authentication- Returns:
- Returns the completable future of HttpRequest
-