AXL Software®

com.theorem.radius3
Class PacketType

Object
  extended byPacketType

public class PacketType
extends Object

Convenience class defining Packet Types. These are the RADIUS codes, sometimes called packet types or message types.


Field Summary
static int Access_Accept
          Access_Accept is returned if an authentication succeeded, value = 2.
static int Access_BadPacket
          Access_BadPacket is returned if the returned authenticator is bad, value = 0.
static int Access_Challenge
          Access_Challenge is returned if an authentication is challenged, value = 11.
static int Access_Reject
          Access_Reject is returned if an authentication failed, value = 3.
static int Access_Request
          Access_Request is the packet type for authentication, value = 1.
static int Accounting_Message
          Accounting Message packet type, value = 10.
static int Accounting_Request
          Accounting_Request packet type, value = 4.
static int Accounting_Response
          Accounting_Response packet type, value = 5.
static int Accounting_Status
          Accounting Status packet type, value = 6.
static int Alternate_Resource_Reclaim_Request
          Alternate Resource Reclaim Request packet type, value = 25.
static int CoA_ACK
          CoA-ACK packet type, value = 44.
static int CoA_NAK
          CoA-NAK packet type, value = 45.
static int CoA_Request
          CoA-Request packet type, value = 43.
static int Disconnect_ACK
          Disconnect Ack packet type, value = 41.
static int Disconnect_NAK
          Disconnect Nak packet type, value = 42.
static int Disconnect_Request
          Disconnect Request packet type, value = 40.
static int Event_Request
          Event Request packet type, value = 33.
static int Event_Response
          Event Response packet type, value = 34.
static int Interim_Accounting
          Interim Accounting packet type, value = 6.
static int IP_Address_Allocate
          IP Address Allocate packet type, value = 50.
static int IP_Address_Release
          IP Address Release packet type, value = 51.
static int NAS_Reboot_Request
          NAS Reboot Request packet type, value = 26.
static int NAS_Reboot_Response
          NAS Reboot Response packet type, value = 27.
static int New_Pin
          New Pin packet type, value = 30.
static int Next_Passcode
          Next Passcode packet type, value = 29.
static int Password_Ack
          Password Ack packet type, value = 8.
static int Password_Expired
          Password Expired packet type, value = 32.
static int Password_Reject
          Password Reject packet type, value = 9.
static int Password_Request
          Password Request packet type, value = 7.
static int Request
          Indicates the packet type is a Request for a RADIUS service.
static int Resource_Free_Request
          Resource Free Request packet type, value = 21.
static int Resource_Free_Response
          Resource Free Response packet type, value = 22.
static int Resource_Query_Request
          Resource Query Request packet type, value = 23.
static int Resource_Query_Response
          Resource Query Response packet type, value = 24.
static int Response
          Indicates the packet type is a response from a RADIUS service.
static int Status_Client
          Status-Client packet type, value = 13.
static int Status_Server
          Status-Server packet type, value = 12.
static int Terminate_Session
          Terminate Session packet type, value = 31.
 
Constructor Summary
PacketType()
          Default constructor.
 
Method Summary
 String getName(int packetType)
          Get a name for the given packet type.
 String toString()
          String representation of the PacketType.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Response

public static final int Response
Indicates the packet type is a response from a RADIUS service.

See Also:
Constant Field Values

Request

public static final int Request
Indicates the packet type is a Request for a RADIUS service.

See Also:
Constant Field Values

Access_Request

public static final int Access_Request
Access_Request is the packet type for authentication, value = 1.

See Also:
Constant Field Values

Access_Accept

public static final int Access_Accept
Access_Accept is returned if an authentication succeeded, value = 2.

See Also:
Constant Field Values

Access_Reject

public static final int Access_Reject
Access_Reject is returned if an authentication failed, value = 3.

See Also:
Constant Field Values

Access_Challenge

public static final int Access_Challenge
Access_Challenge is returned if an authentication is challenged, value = 11.

See Also:
Constant Field Values

Access_BadPacket

public static final int Access_BadPacket
Access_BadPacket is returned if the returned authenticator is bad, value = 0.

See Also:
Constant Field Values

Accounting_Request

public static final int Accounting_Request
Accounting_Request packet type, value = 4.

See Also:
Constant Field Values

Accounting_Response

public static final int Accounting_Response
Accounting_Response packet type, value = 5.

See Also:
Constant Field Values

Accounting_Status

public static final int Accounting_Status
Accounting Status packet type, value = 6. This is now Interim Accounting.

See Also:
Constant Field Values

Interim_Accounting

public static final int Interim_Accounting
Interim Accounting packet type, value = 6. This was Accounting Status.

See Also:
Constant Field Values

Password_Request

public static final int Password_Request
Password Request packet type, value = 7.

See Also:
Constant Field Values

Password_Ack

public static final int Password_Ack
Password Ack packet type, value = 8.

See Also:
Constant Field Values

Password_Reject

public static final int Password_Reject
Password Reject packet type, value = 9.

See Also:
Constant Field Values

Accounting_Message

public static final int Accounting_Message
Accounting Message packet type, value = 10.

See Also:
Constant Field Values

Status_Server

public static final int Status_Server
Status-Server packet type, value = 12.

See Also:
Constant Field Values

Status_Client

public static final int Status_Client
Status-Client packet type, value = 13.

See Also:
Constant Field Values

Resource_Free_Request

public static final int Resource_Free_Request
Resource Free Request packet type, value = 21.

See Also:
Constant Field Values

Resource_Free_Response

public static final int Resource_Free_Response
Resource Free Response packet type, value = 22.

See Also:
Constant Field Values

Resource_Query_Request

public static final int Resource_Query_Request
Resource Query Request packet type, value = 23.

See Also:
Constant Field Values

Resource_Query_Response

public static final int Resource_Query_Response
Resource Query Response packet type, value = 24.

See Also:
Constant Field Values

Alternate_Resource_Reclaim_Request

public static final int Alternate_Resource_Reclaim_Request
Alternate Resource Reclaim Request packet type, value = 25.

See Also:
Constant Field Values

NAS_Reboot_Request

public static final int NAS_Reboot_Request
NAS Reboot Request packet type, value = 26.

See Also:
Constant Field Values

NAS_Reboot_Response

public static final int NAS_Reboot_Response
NAS Reboot Response packet type, value = 27.

See Also:
Constant Field Values

Next_Passcode

public static final int Next_Passcode
Next Passcode packet type, value = 29.

See Also:
Constant Field Values

New_Pin

public static final int New_Pin
New Pin packet type, value = 30.

See Also:
Constant Field Values

Terminate_Session

public static final int Terminate_Session
Terminate Session packet type, value = 31.

See Also:
Constant Field Values

Password_Expired

public static final int Password_Expired
Password Expired packet type, value = 32.

See Also:
Constant Field Values

Event_Request

public static final int Event_Request
Event Request packet type, value = 33.

See Also:
Constant Field Values

Event_Response

public static final int Event_Response
Event Response packet type, value = 34.

See Also:
Constant Field Values

Disconnect_Request

public static final int Disconnect_Request
Disconnect Request packet type, value = 40.

See Also:
Constant Field Values

Disconnect_ACK

public static final int Disconnect_ACK
Disconnect Ack packet type, value = 41.

See Also:
Constant Field Values

Disconnect_NAK

public static final int Disconnect_NAK
Disconnect Nak packet type, value = 42.

See Also:
Constant Field Values

CoA_Request

public static final int CoA_Request
CoA-Request packet type, value = 43.

See Also:
Constant Field Values

CoA_ACK

public static final int CoA_ACK
CoA-ACK packet type, value = 44.

See Also:
Constant Field Values

CoA_NAK

public static final int CoA_NAK
CoA-NAK packet type, value = 45.

See Also:
Constant Field Values

IP_Address_Allocate

public static final int IP_Address_Allocate
IP Address Allocate packet type, value = 50.

See Also:
Constant Field Values

IP_Address_Release

public static final int IP_Address_Release
IP Address Release packet type, value = 51.

See Also:
Constant Field Values
Constructor Detail

PacketType

public PacketType()
Default constructor. Primarily used for getting a packet type by name: new PacketType.getName(packetTypeValue).

Method Detail

getName

public String getName(int packetType)
Get a name for the given packet type.

Parameters:
packetType - number of the packet type.
Returns:
Name of packet type.

toString

public String toString()
String representation of the PacketType.

Returns:
String.

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.