public class AuthState
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
PREEMPTIVE_AUTH_SCHEME |
Constructor | Description |
---|---|
AuthState() |
Default constructor.
|
Modifier and Type | Method | Description |
---|---|---|
AuthScheme |
getAuthScheme() |
Returns the
authentication scheme . |
java.lang.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.
|
java.lang.String |
toString() |
public static final java.lang.String PREEMPTIVE_AUTH_SCHEME
public void invalidate()
public boolean isAuthRequested()
public void setAuthRequested(boolean challengeReceived)
challengeReceived
- true if authenication has been requested,
false otherwisepublic boolean isAuthAttempted()
public void setAuthAttempted(boolean challengeResponded)
challengeResponded
- true if authenication has been attempted,
false otherwisepublic void setPreemptive()
public boolean isPreemptive()
authentication scheme
, false otherwise.public void setAuthScheme(AuthScheme authScheme)
authentication scheme
.authScheme
- the authentication scheme
public AuthScheme getAuthScheme()
authentication scheme
.authentication scheme
public java.lang.String getRealm()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 1999-2005 - Apache Software Foundation