uk.ac.cam.ucs.webauth
Class WLS

java.lang.Object
  extended byuk.ac.cam.ucs.webauth.WLS

public class WLS
extends Object

Contains constants and static utility methods shared throughout the WebAuth system.

Version:
$Revision: 1.5 $ $Date: 2005/03/03 16:08:08 $

Field Summary
static int STATUS_BAD_VERSION
          Status code indicating that the authentication server does not support the version of the protocol used in the authentication response.
static int STATUS_CANCELED
          Status code indicating that the user actively abandoned the authentication process by selecting a cancel button or similar process.
static int STATUS_DECLINED
          Status code indicating that the authentication server declines to provide authentication services on this occasion.
static int STATUS_IACT_REQUIRED
          Status code indicating that a request specified 'iact' as 'no' but either the user is not currently identified to the WLS or the user has asked to be notified before responses that identify him/her are issued.
static int STATUS_NO_COMMON_AUTH
          Status code indicating that the authentication server does not support any of the authentication types specified in the 'aauth' parameter of the authentication request.
static int STATUS_REQUEST_ERROR
          Status code indicating tha tthere was a problem decoding the request parameters that is not covered by a more specific status - perhaps an unrecognised parameter.
static int STATUS_SUCCESS
          Status code representing successfull authentication (200)
static int STATUS_UNAUTHORIZED
          Status code indicating that this application is not authorised to use the targeted authentication server.
 
Constructor Summary
WLS()
           
 
Method Summary
static String statusString(int status)
          Returns a text description of a status code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_SUCCESS

public static final int STATUS_SUCCESS
Status code representing successfull authentication (200)

See Also:
Constant Field Values

STATUS_CANCELED

public static final int STATUS_CANCELED
Status code indicating that the user actively abandoned the authentication process by selecting a cancel button or similar process. Note that users can equally abandoned the authentication process by directing their browser elsewhere after an authentication request in which case no response will be forthcoming. (410)

See Also:
Constant Field Values

STATUS_NO_COMMON_AUTH

public static final int STATUS_NO_COMMON_AUTH
Status code indicating that the authentication server does not support any of the authentication types specified in the 'aauth' parameter of the authentication request. (510)

See Also:
Constant Field Values

STATUS_BAD_VERSION

public static final int STATUS_BAD_VERSION
Status code indicating that the authentication server does not support the version of the protocol used in the authentication response. This status code will only ever be sent in a response with the 'ver' field' set to 1. (520)

See Also:
Constant Field Values

STATUS_REQUEST_ERROR

public static final int STATUS_REQUEST_ERROR
Status code indicating tha tthere was a problem decoding the request parameters that is not covered by a more specific status - perhaps an unrecognised parameter. (530)

See Also:
Constant Field Values

STATUS_IACT_REQUIRED

public static final int STATUS_IACT_REQUIRED
Status code indicating that a request specified 'iact' as 'no' but either the user is not currently identified to the WLS or the user has asked to be notified before responses that identify him/her are issued. (540)

See Also:
Constant Field Values

STATUS_UNAUTHORIZED

public static final int STATUS_UNAUTHORIZED
Status code indicating that this application is not authorised to use the targeted authentication server. (560)

See Also:
Constant Field Values

STATUS_DECLINED

public static final int STATUS_DECLINED
Status code indicating that the authentication server declines to provide authentication services on this occasion. (570)

See Also:
Constant Field Values
Constructor Detail

WLS

public WLS()
Method Detail

statusString

public static String statusString(int status)
Returns a text description of a status code

Parameters:
status - Numeric status code
Returns:
text description