com.pmease.quickbuild.rest
Class HTTPDigestAuthFilter
java.lang.Object
com.sun.jersey.api.client.filter.ClientFilter
com.pmease.quickbuild.rest.HTTPDigestAuthFilter
- All Implemented Interfaces:
- com.sun.jersey.api.client.ClientHandler
public final class HTTPDigestAuthFilter
- extends com.sun.jersey.api.client.filter.ClientFilter
Client filter adding HTTP Digest authentication headers in the request
Constructor Summary |
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. |
Method Summary |
com.sun.jersey.api.client.ClientResponse |
handle(com.sun.jersey.api.client.ClientRequest request)
|
Methods inherited from class com.sun.jersey.api.client.filter.ClientFilter |
getNext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPDigestAuthFilter
public HTTPDigestAuthFilter(java.lang.String user,
java.lang.String password)
- Creates a new HTTP Digest Authentication filter using provided username
and password credentials.
- Parameters:
user
- usernamepassword
- password
HTTPDigestAuthFilter
public HTTPDigestAuthFilter(java.lang.String user,
byte[] password)
- Creates a new HTTP Digest Authentication filter using provided username
and password credentials. This constructor allows you to avoid storing
plain password value in a String variable.
- Parameters:
user
- usernamepassword
- password
handle
public com.sun.jersey.api.client.ClientResponse handle(com.sun.jersey.api.client.ClientRequest request)
throws com.sun.jersey.api.client.ClientHandlerException
- Specified by:
handle
in interface com.sun.jersey.api.client.ClientHandler
- Specified by:
handle
in class com.sun.jersey.api.client.filter.ClientFilter
- Throws:
com.sun.jersey.api.client.ClientHandlerException
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.