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