
public class TokenBearerAuthenticator extends Object implements javax.ws.rs.client.ClientRequestFilter
A JAX-RS client filter providing support for the OAuth/Token Bearer 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 |
|---|
TokenBearerAuthenticator(String token) |
| Modifier and Type | Method and Description |
|---|---|
void |
filter(javax.ws.rs.client.ClientRequestContext requestContext) |
public TokenBearerAuthenticator(String token)
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.