public class SimpleAuthenticator extends Authenticator
userName
and password combination.
© Copyright 2007, Sans Pareil Technologies, Inc.
Authenticator.RequestorType| Constructor and Description |
|---|
SimpleAuthenticator(String userName,
String password)
Create a new instance of the authenticator using the specified
credentials;
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword()
Returns the value of
password. |
protected PasswordAuthentication |
getPasswordAuthentication()
Called when password authorization is needed.
|
String |
getUserName()
Returns the value of
userName. |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefaultprotected PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class AuthenticatorAuthenticator.getPasswordAuthentication()public String getUserName()
userName.