|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.auth.AuthState
@NotThreadSafe public class AuthState
This class provides detailed information about the state of the authentication process.
| Constructor Summary | |
|---|---|
AuthState()
Default constructor. |
|
| Method Summary | |
|---|---|
AuthScheme |
getAuthScheme()
Returns the authentication scheme. |
AuthScope |
getAuthScope()
Returns actual AuthScope if available |
Credentials |
getCredentials()
Returns user Credentials selected for authentication if available |
void |
invalidate()
Invalidates the authentication state by resetting its parameters. |
boolean |
isValid()
|
void |
setAuthScheme(AuthScheme authScheme)
Assigns the given authentication scheme. |
void |
setAuthScope(AuthScope authScope)
Sets actual AuthScope. |
void |
setCredentials(Credentials credentials)
Sets user Credentials to be used for authentication |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthState()
| Method Detail |
|---|
public void invalidate()
public boolean isValid()
public void setAuthScheme(AuthScheme authScheme)
authentication scheme.
authScheme - the authentication schemepublic AuthScheme getAuthScheme()
authentication scheme.
authentication schemepublic Credentials getCredentials()
Credentials selected for authentication if available
null
public void setCredentials(Credentials credentials)
Credentials to be used for authentication
credentials - User credentialspublic AuthScope getAuthScope()
AuthScope if available
null
public void setAuthScope(AuthScope authScope)
AuthScope.
authScope - Authentication scopepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||