public final class HTTPBasicAuthFilter extends ClientFilter
Constructor and Description |
---|
HTTPBasicAuthFilter(java.lang.String username,
byte[] password)
Creates a new HTTP Basic Authentication filter using provided username
and password credentials.
|
HTTPBasicAuthFilter(java.lang.String username,
java.lang.String password)
Creates a new HTTP Basic Authentication filter using provided username
and password credentials.
|
Modifier and Type | Method and Description |
---|---|
ClientResponse |
handle(ClientRequest cr)
Handle a HTTP request as a
ClientRequest and return the HTTP
response as a ClientResponse . |
getNext
public HTTPBasicAuthFilter(java.lang.String username, byte[] password)
username
- password
- public HTTPBasicAuthFilter(java.lang.String username, java.lang.String password)
username
- password
- public ClientResponse handle(ClientRequest cr) throws ClientHandlerException
ClientHandler
ClientRequest
and return the HTTP
response as a ClientResponse
.handle
in interface ClientHandler
handle
in class ClientFilter
cr
- the HTTP request.ClientHandlerException
- if the client
handler fails to process the request or response.Copyright © 2016 Oracle Corporation. All Rights Reserved.