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 HttpAuthenticator
public void invalidate()
invalidate
in interface HttpAuthenticator
Copyright © 2015. All rights reserved.