public class RandomAuthenticatorPool extends Object implements HttpAuthenticator
This can be useful when you want to perform testing that covers the use of multiple authentication methods or different sets of credentials.
| Constructor and Description |
|---|
RandomAuthenticatorPool(Collection<HttpAuthenticator> authenticators)
Creates a new authenticator
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.apache.http.impl.client.AbstractHttpClient client,
org.apache.http.protocol.HttpContext httpContext,
URI target) |
void |
invalidate() |
public RandomAuthenticatorPool(Collection<HttpAuthenticator> authenticators)
authenticators - Pool of authenticators where each represents a possible
authentication method and/or set of credentialspublic void apply(org.apache.http.impl.client.AbstractHttpClient client,
org.apache.http.protocol.HttpContext httpContext,
URI target)
apply in interface HttpAuthenticatorpublic void invalidate()
invalidate in interface HttpAuthenticatorCopyright © 2016. All rights reserved.