Authenticator.
| Modifier and Type | Field and Description |
|---|---|
| protected byte[] | password
The current password. |
| protected String | user
The current user name. |
| Access | Constructor and Description |
|---|---|
| public | BasicAuthentication(InetSocketAddress
InetSocketAddress of the proxy to connect toinitial user name to try; may be initialUser, char[] nullinitial password to try, may be initialPassword)nullCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| public final void | close()
Implements org. Closes this stream and releases any system resources associated with it. |
| private byte[] | |
| public void | process()
Implements org. Produces the next authentication token, if any. |
| public final void | start()
Implements org. Produces the initial authentication token that can be then retrieved via
|
| password | back to summary |
|---|---|
| protected byte[] password The current password. | |
| user | back to summary |
|---|---|
| protected String user The current user name. | |
| BasicAuthentication | back to summary |
|---|---|
| public BasicAuthentication(InetSocketAddress proxy, String initialUser, char[] initialPassword) Creates a new
| |
| askCredentials | back to summary |
|---|---|
| protected void askCredentials() Asks for credentials via the global | |
| clearPassword | back to summary |
|---|---|
| protected void clearPassword() Clears the | |
| close | back to summary |
|---|---|
| public final void close() Implements org. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| convert | back to summary |
|---|---|
private byte[] convert(char[] pass)
| |
| process | back to summary |
|---|---|
| public void process() throws Exception Implements org. Doc from org. Produces the next authentication token, if any. | |
| start | back to summary |
|---|---|
| public final void start() throws Exception Implements org. Doc from org. Produces the initial authentication token that can be then retrieved via
| |