public interface ChannelAuth
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(org.apache.http.HttpRequest httpRequest)
Adds the http header with the Authorization token to the given http request
|
void |
reset()
Purge any credentials cached from a previous authentication.
|
void authenticate(org.apache.http.HttpRequest httpRequest)
throws PermanentError,
TemporaryError
httpRequest - request where to add the Authorization headerTemporaryError - if an unexpected (but possibly recoverable) authentication error occurs for the request.PermanentError - if the request fails due to the user not being authenticated successfully or if the user
is unauthorized to make the request or if a non-recoverable authentication error occurs for the request.void reset()