org.apache.commons.httpclient.auth
public class AuthState extends Object
Since: 3.0
| Field Summary | |
|---|---|
| static String | PREEMPTIVE_AUTH_SCHEME |
| Constructor Summary | |
|---|---|
| AuthState()
Default constructor.
| |
| Method Summary | |
|---|---|
| AuthScheme | getAuthScheme()
Returns the authentication scheme.
|
| String | getRealm()
Returns the authentication realm.
|
| void | invalidate()
Invalidates the authentication state by resetting its parameters. |
| boolean | isAuthAttempted()
Tests whether authenication challenge has been responsed to
|
| boolean | isAuthRequested()
Tests whether authenication challenge has been received
|
| boolean | isPreemptive()
Tests if preemptive authentication is used.
|
| void | setAuthAttempted(boolean challengeResponded)
Sets authentication attempt status
|
| void | setAuthRequested(boolean challengeReceived)
Sets authentication request status
|
| void | setAuthScheme(AuthScheme authScheme)
Assigns the given authentication scheme.
|
| void | setPreemptive()
Preemptively assigns Basic authentication scheme. |
| String | toString() |
authentication scheme.
Returns: authentication scheme
Returns: the name of the authentication realm
Returns: true if authenication challenge has been responsed to, false otherwise
Returns: true if authenication challenge has been received, false otherwise
Returns: true if using the default Basic
authentication scheme, false otherwise.
Parameters: challengeResponded true if authenication has been attempted, false otherwise
Parameters: challengeReceived true if authenication has been requested, false otherwise
authentication scheme.
Parameters: authScheme the authentication scheme