public class

AuthenticationException

extends ServiceException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.gdata.util.ServiceException
         ↳ com.google.gdata.util.AuthenticationException
Known Direct Subclasses

Class Overview

The AuthenticationException class is used to represent a GData service failure due to authentication.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class java.lang.Exception
From class java.lang.Throwable
Fields
private static final Pattern PARAM_PATTERN
private static final Pattern SCHEME_PATTERN
private static String TOKEN
private String authHeader
private Map<String, String> parameters
private String scheme
[Expand]
Inherited Fields
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
Public Constructors
AuthenticationException(String message, String authHeader)
Constructs a new AuthenticationException instance based upon the contents of a WWW-Authenticate header as described by RFC2617.
AuthenticationException(String message)
Creates a new AuthenticationException without any authentication header information.
AuthenticationException(HttpURLConnection httpConn)
Constructs a new AuthenticationException using header and error stream information from an HTTP connection.
Public Methods
String getAuthHeader()
Map<String, String> getParameters()
String getRealm()
String getScheme()
[Expand]
Inherited Methods
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: -6345720441624559711 (0xa7ef78e121087fa1)

Fields

private static final Pattern PARAM_PATTERN

private static final Pattern SCHEME_PATTERN

private static String TOKEN

private String authHeader

private Map<String, String> parameters

private String scheme

Public Constructors

public AuthenticationException (String message, String authHeader)

Constructs a new AuthenticationException instance based upon the contents of a WWW-Authenticate header as described by RFC2617.

Parameters
message
authHeader

public AuthenticationException (String message)

Creates a new AuthenticationException without any authentication header information. The WWW-Authenticate header will have to be set separately to build a valid HTTP 401 error response.

Parameters
message

public AuthenticationException (HttpURLConnection httpConn)

Constructs a new AuthenticationException using header and error stream information from an HTTP connection.

Parameters
httpConn
Throws
IOException

Public Methods

public String getAuthHeader ()

public Map<String, String> getParameters ()

public String getRealm ()

public String getScheme ()