RADIUS Client API (V3)

com.theorem.radius3.login
Class Attributes

Object
  extended byAttributes
All Implemented Interfaces:
Callback, RADIUSCallback, Serializable
Direct Known Subclasses:
AccessAccept, AccessBadPacket, AccessChallenge, AccessReject, ClientException, SetAccessRequestAttributes

public class Attributes
extends Object
implements RADIUSCallback, Callback, Serializable

Base class for a class that gets or sets attributes.

See Also:
Serialized Form

Field Summary
static int Access_Accept
          Access-Accept (2).
static int Access_BadPacket
          Access-BadPacket (0).
static int Access_Challenge
          Access-Challenge (11).
static int Access_Reject
          Access-Reject (3).
 
Method Summary
 AttributeList getRequestAttributes()
          Get request attributes for the RADIUS client.
 int getResponse()
          Retrieve the server response.
 AttributeList getResponseAttributes()
          Retrieve response attributes from the RADIUS client.
 boolean isReady()
          Determine if the values in the callback class are ready to be accessed or modified.
 void setReady(boolean setting)
          Set the Callback ready indicator.
 void setRequestAttributes(AttributeList requestList)
          Set request attributes for the RADIUS client.
 void setResponse(int response)
          Set the server response.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Access_Accept

public static final int Access_Accept
Access-Accept (2).

See Also:
Constant Field Values

Access_Challenge

public static final int Access_Challenge
Access-Challenge (11).

See Also:
Constant Field Values

Access_Reject

public static final int Access_Reject
Access-Reject (3).

See Also:
Constant Field Values

Access_BadPacket

public static final int Access_BadPacket
Access-BadPacket (0). This is a special return resulting from an error in the received packet.

See Also:
Constant Field Values
Method Detail

getResponseAttributes

public final AttributeList getResponseAttributes()
Retrieve response attributes from the RADIUS client.

Returns:
RADIUS attribute list.

setRequestAttributes

public final void setRequestAttributes(AttributeList requestList)
Set request attributes for the RADIUS client.

Parameters:
requestList - List of request attributes to be sent on a request by the client.

getRequestAttributes

public final AttributeList getRequestAttributes()
Get request attributes for the RADIUS client.

Returns:
Reponse attribute list.

setResponse

public final void setResponse(int response)
Set the server response.

Parameters:
response - Packet type returned.

getResponse

public final int getResponse()
Retrieve the server response. It will be either Access-Accept or Access-Challenge.

Returns:
Access response.

setReady

public final void setReady(boolean setting)
Set the Callback ready indicator.

Specified by:
setReady in interface RADIUSCallback
Parameters:
setting - Set to true if this instance is ready to read / write data.

isReady

public final boolean isReady()
Determine if the values in the callback class are ready to be accessed or modified.

Specified by:
isReady in interface RADIUSCallback
Returns:
True if the instance's data may be read or written.

RADIUS Client API (V3)

Submit a bug report or feature request

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