|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.httpclient.auth.AuthState
public class AuthState
This class provides detailed information about the state of the authentication process.
Field Summary | |
---|---|
static java.lang.Class[] |
preemptiveAuthSchemes
|
Constructor Summary | |
---|---|
AuthState()
Default constructor. |
Method Summary | |
---|---|
AuthScheme |
getAuthScheme()
Returns the authentication scheme . |
void |
invalidate()
Invalidates the authentication state by resetting its parameters. |
boolean |
isAuthAttempted()
Tests whether authentication challenge has been responded to |
boolean |
isAuthRequested()
Tests whether authentication 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(Credentials credentials)
Preemptively assigns a suitable authentication scheme. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class[] preemptiveAuthSchemes
Constructor Detail |
---|
public AuthState()
Method Detail |
---|
public void invalidate()
public boolean isAuthRequested()
public void setAuthRequested(boolean challengeReceived)
challengeReceived
- true if authentication has been requested, false
otherwisepublic boolean isAuthAttempted()
public void setAuthAttempted(boolean challengeResponded)
challengeResponded
- true if authentication has been attempted, false
otherwisepublic void setPreemptive(Credentials credentials)
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 toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |