org.glassfish.jersey.client.filter
Class HttpBasicAuthFilter
java.lang.Object
org.glassfish.jersey.client.filter.HttpBasicAuthFilter
- All Implemented Interfaces:
- ClientRequestFilter
public final class HttpBasicAuthFilter
- extends Object
- implements ClientRequestFilter
Client filter adding HTTP Basic Authentication header to the HTTP request,
if no such header is already present.
- Author:
- Jakub Podlesak (jakub.podlesak at oracle.com), Craig McClanahan
|
Constructor Summary |
HttpBasicAuthFilter(String username,
String password)
Creates a new HTTP Basic Authentication filter using provided username
and password credentials. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpBasicAuthFilter
public HttpBasicAuthFilter(String username,
String password)
- Creates a new HTTP Basic Authentication filter using provided username
and password credentials.
- Parameters:
username - user namepassword - password
filter
public void filter(ClientRequestContext rc)
throws IOException
- Specified by:
filter in interface ClientRequestFilter
- Throws:
IOException
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.