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. |
getNextpublic 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
ClientHandlerClientRequest and return the HTTP
response as a ClientResponse.handle in interface ClientHandlerhandle in class ClientFiltercr - the HTTP request.ClientHandlerException - if the client
handler fails to process the request or response.Copyright © 2016 Oracle Corporation. All Rights Reserved.