Android
org.apache.http.auth
public class

org.apache.http.auth.AuthState

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

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

Summary

Public Constructors

            AuthState()
Default constructor.

Public Methods

          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()
Returns a string containing a concise, human-readable description of the receiver.
Methods inherited from class java.lang.Object

Details

Public Constructors

public AuthState()

Default constructor.

Public Methods

public AuthScheme getAuthScheme()

public AuthScope getAuthScope()

Returns actual AuthScope if available

Returns

  • actual authentication scope if available, null

public Credentials getCredentials()

Returns user Credentials selected for authentication if available

Returns

  • user credentials if available, null

public void invalidate()

Invalidates the authentication state by resetting its parameters.

public boolean isValid()

public void setAuthScheme(AuthScheme authScheme)

Assigns the given authentication scheme.

Parameters

authScheme the authentication scheme

public void setAuthScope(AuthScope authScope)

Sets actual AuthScope.

Parameters

authScope Authentication scope

public void setCredentials(Credentials credentials)

Sets user Credentials to be used for authentication

Parameters

credentials User credentials

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48