org.apache.jena.atlas.web.auth
Class SimpleAuthenticator
java.lang.Object
org.apache.jena.atlas.web.auth.AbstractCredentialsAuthenticator
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.
SimpleAuthenticator
public SimpleAuthenticator(String username,
char[] password)
- Creates a new authenticator
- Parameters:
username - Usernamepassword - Password
Licenced under the Apache License, Version 2.0