org.apache.jena.atlas.web.auth
Class ServiceAuthenticator

java.lang.Object
  extended by org.apache.jena.atlas.web.auth.AbstractCredentialsAuthenticator
      extended by org.apache.jena.atlas.web.auth.AbstractScopedAuthenticator<Context>
          extended by org.apache.jena.atlas.web.auth.ServiceAuthenticator
All Implemented Interfaces:
HttpAuthenticator

public class ServiceAuthenticator
extends AbstractScopedAuthenticator<Context>

A HTTP authenticator which selects credentials based upon service context found in the provided Context. May also optionally use fallback credentials for URIs for which authentication has not been explicitly configured. This works only with the Basic and Digest authentication schemes so you may need to use an alternative authenticator if you need to use another authentication scheme.


Constructor Summary
ServiceAuthenticator()
          Creates new authenticator using the standard ARQ context
ServiceAuthenticator(Context context)
          Creates a new authenticator using the given context
ServiceAuthenticator(Context context, String username, char[] password)
          Creates a new authenticator using the given context, the provided credentials are used as fallback if the context contains no registered credentials for a target URI
ServiceAuthenticator(String username, char[] password)
          Creates a new authenticator using the standard ARQ context, the provided credentials are used as fallback if the context contains no registered credentials for a target URI
 
Method Summary
 
Methods inherited from class org.apache.jena.atlas.web.auth.AbstractCredentialsAuthenticator
apply, invalidate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceAuthenticator

public ServiceAuthenticator()
Creates new authenticator using the standard ARQ context


ServiceAuthenticator

public ServiceAuthenticator(String username,
                            char[] password)
Creates a new authenticator using the standard ARQ context, the provided credentials are used as fallback if the context contains no registered credentials for a target URI

Parameters:
username - Fallback user name
password - Fallback password

ServiceAuthenticator

public ServiceAuthenticator(Context context)
Creates a new authenticator using the given context

Parameters:
context - Context

ServiceAuthenticator

public ServiceAuthenticator(Context context,
                            String username,
                            char[] password)
Creates a new authenticator using the given context, the provided credentials are used as fallback if the context contains no registered credentials for a target URI

Parameters:
context - Context
username - Fallback user name
password - Fallback password


Licenced under the Apache License, Version 2.0