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

java.lang.Object
  extended by org.apache.jena.atlas.web.auth.AbstractCredentialsAuthenticator
      extended by org.apache.jena.atlas.web.auth.SimpleAuthenticator
All Implemented Interfaces:
HttpAuthenticator
Direct Known Subclasses:
SimpleNTAuthenticator

public class SimpleAuthenticator
extends AbstractCredentialsAuthenticator

A HTTP Authenticator which provides authentication via user name and password combinations. Works with the basic and digest HTTP authentication schemes.

See SimpleNTAuthenticator for an implementation that works for the NTLM authentication scheme.

This authenticator will present the given credentials to any server that request authentication even though the credentials may not be valid there. It is typically more secure to use the ScopedAuthenticator instead which only presents credentials to specific servers.


Constructor Summary
SimpleAuthenticator(String username, char[] password)
          Creates a new authenticator
 
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

SimpleAuthenticator

public SimpleAuthenticator(String username,
                           char[] password)
Creates a new authenticator

Parameters:
username - Username
password - Password


Licenced under the Apache License, Version 2.0