public class

AuthState

extends Object
java.lang.Object
   ↳ org.apache.http.auth.AuthState

Class Overview

This class provides detailed information about the state of the authentication process.

Summary

Public Constructors
AuthState()
Default constructor.
Public Methods
AuthScheme getAuthScheme()
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()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AuthState ()

Also: HttpClient

Default constructor.

Public Methods

public AuthScheme getAuthScheme ()

Also: HttpClient

public AuthScope getAuthScope ()

Also: HttpClient

Returns actual AuthScope if available

Returns
  • actual authentication scope if available, null

public Credentials getCredentials ()

Also: HttpClient

Returns user Credentials selected for authentication if available

Returns
  • user credentials if available, null

public void invalidate ()

Also: HttpClient

Invalidates the authentication state by resetting its parameters.

public boolean isValid ()

Also: HttpClient

public void setAuthScheme (AuthScheme authScheme)

Also: HttpClient

Assigns the given authentication scheme.

Parameters
authScheme the authentication scheme

public void setAuthScope (AuthScope authScope)

Also: HttpClient

Sets actual AuthScope.

Parameters
authScope Authentication scope

public void setCredentials (Credentials credentials)

Also: HttpClient

Sets user Credentials to be used for authentication

Parameters
credentials User credentials

public String toString ()