AXL Software®

com.theorem.radius3.login
Class AccessBadPacket

Object
  extended byAttributes
      extended byAccessBadPacket
All Implemented Interfaces:
Callback, RADIUSCallback, Serializable

public final class AccessBadPacket
extends Attributes
implements Callback, Serializable

Class to access attributes from an Access-BadPacket packet. The response attributes may be valid and can be obtained using the method getResponseAttributes(). A bad packet may result from an incorrect secret, badly formed attribute block, incorrect authenticator and so on. The exact error is returned as a number and also as a string.

The RADIUSTextOutputCallback will also be called with the particular error during the same callback. It may or may not be important to display this message. The authentication will have failed for technical reasons (E.g. the server and client aren't using the same secret).

Access to data handling methods in this class may only be performed when isReady() returns true.

This is a handler class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class Attributes
Access_Accept, Access_BadPacket, Access_Challenge, Access_Reject
 
Method Summary
 int errorNumber()
          Return the error that generated an Access-BadPacket response.
 String errorString()
          Return the error that generated an Access-BadPacket response.
 
Methods inherited from class Attributes
getRequestAttributes, getResponse, getResponseAttributes, isReady, setReady, setRequestAttributes, setResponse
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

errorString

public String errorString()
Return the error that generated an Access-BadPacket response.

Returns:
Reason for the Access-BadPacket response or null if there is no error.

errorNumber

public int errorNumber()
Return the error that generated an Access-BadPacket response.

Returns:
Reason for the Access-BadPacket response or 0 if there is no error.

AXL Software®

Submit a bug report or feature request

Copyright 1998-2009 AXL Software® PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.