public final class HttpBasicAuthFilter extends Object implements ClientRequestFilter
| Constructor and Description |
|---|
HttpBasicAuthFilter(String username,
byte[] password)
Creates a new HTTP Basic Authentication filter using provided username
and password credentials.
|
HttpBasicAuthFilter(String username,
String password)
Creates a new HTTP Basic Authentication filter using provided username
and password credentials.
|
| Modifier and Type | Method and Description |
|---|---|
void |
filter(ClientRequestContext rc)
Filter method called before a request has been dispatched to a client
transport layer.
|
public HttpBasicAuthFilter(String username, String password)
username - user namepassword - passwordpublic HttpBasicAuthFilter(String username, byte[] password)
username - user namepassword - passwordpublic void filter(ClientRequestContext rc) throws IOException
ClientRequestFilterjavax.annotation.Priority
class-level annotation value.filter in interface ClientRequestFilterrc - request context.IOException - if an I/O exception occurs.Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.