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