|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jena.atlas.web.auth.AbstractCredentialsAuthenticator
org.apache.jena.atlas.web.auth.AbstractScopedAuthenticator<HttpAuthenticator>
org.apache.jena.atlas.web.auth.DelegatingAuthenticator
public class DelegatingAuthenticator
A scoped authenticator which is actually a wrapper around other authenticators and thus can be used to mix and match different authentication mechanisms to different services as desired
| Constructor Summary | |
|---|---|
DelegatingAuthenticator(Map<URI,HttpAuthenticator> authenticators)
Creates a new delegating authenticator |
|
DelegatingAuthenticator(URI target,
HttpAuthenticator authenticator)
Creates a new delegating authenticator |
|
| Method Summary | |
|---|---|
void |
apply(org.apache.http.impl.client.AbstractHttpClient client,
org.apache.http.protocol.HttpContext context,
URI target)
Applies any necessary authentication methods to the given HTTP Client |
| Methods inherited from class org.apache.jena.atlas.web.auth.AbstractCredentialsAuthenticator |
|---|
invalidate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingAuthenticator(URI target,
HttpAuthenticator authenticator)
target - Target URIauthenticator - Authenticator to delegate topublic DelegatingAuthenticator(Map<URI,HttpAuthenticator> authenticators)
authenticators - Mapping between URIs and authenticators| Method Detail |
|---|
public void apply(org.apache.http.impl.client.AbstractHttpClient client,
org.apache.http.protocol.HttpContext context,
URI target)
HttpAuthenticator
The target parameter indicates the URI to which the request is
being made and so may be used by an authenticator to determine whether it
actually needs to apply any authentication or to scope authentication
appropriately.
apply in interface HttpAuthenticatorapply in class AbstractCredentialsAuthenticatorclient - HTTP Clientcontext - HTTP Contexttarget - Target URI to which code wants to authenticate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||