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 and Description |
---|
SimpleAuthenticator(String username,
char[] password)
Creates a new authenticator
|
public SimpleAuthenticator(String username, char[] password)
username
- Usernamepassword
- PasswordLicenced under the Apache License, Version 2.0