public class SimpleAuthenticator extends AbstractCredentialsAuthenticator
A HTTP Authenticator which provides authentication via user name and password combinations, can in principal be used to authenticate with any of the HTTP authentication schemes that HTTP Client supports
This authenticator will presents the given credentials to any server, it is
typically more secure to use the ScopedAuthenticator
instead.
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