org.apache.commons.httpclient.auth
Class AuthState
java.lang.Object
org.apache.commons.httpclient.auth.AuthState
public class AuthState
extends java.lang.Object
This class provides detailed information about the state of the
authentication process.
PREEMPTIVE_AUTH_SCHEME
public static final String PREEMPTIVE_AUTH_SCHEME
AuthState
public AuthState()
Default constructor.
getRealm
public String getRealm()
Returns the authentication realm.
- the name of the authentication realm
invalidate
public void invalidate()
Invalidates the authentication state by resetting its parameters.
isAuthAttempted
public boolean isAuthAttempted()
Tests whether authenication challenge has been responsed to
- true if authenication challenge has been responsed to,
false otherwise
isAuthRequested
public boolean isAuthRequested()
Tests whether authenication challenge has been received
- true if authenication challenge has been received,
false otherwise
isPreemptive
public boolean isPreemptive()
Tests if preemptive authentication is used.
setAuthAttempted
public void setAuthAttempted(boolean challengeResponded)
Sets authentication attempt status
challengeResponded
- true if authenication has been attempted,
false otherwise
setAuthRequested
public void setAuthRequested(boolean challengeReceived)
Sets authentication request status
challengeReceived
- true if authenication has been requested,
false otherwise
setAuthScheme
public void setAuthScheme(AuthScheme authScheme)
setPreemptive
public void setPreemptive()
Preemptively assigns Basic authentication scheme.
toString
public String toString()
Copyright (c) 1999-2005 - Apache Software Foundation