
public class BasicAuthenticator extends Object implements javax.ws.rs.client.ClientRequestFilter
A JAX-RS client filter providing support for the Basic Authentication form of HTTP Authentication scheme.
Note: unfortunately implementations (e.g. Jersey) don't acknowledge the risks
of interned String passwords by allowing the header value to be set as a char array.
This is likely due to API design, e.g. RuntimeDelegate.HeaderDelegate
| Constructor and Description |
|---|
BasicAuthenticator(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
filter(javax.ws.rs.client.ClientRequestContext requestContext) |
public void filter(javax.ws.rs.client.ClientRequestContext requestContext)
throws IOException
filter in interface javax.ws.rs.client.ClientRequestFilterIOExceptionCopyright © 2017–2018 earcam. All rights reserved.