net.sf.jradius.packet
Class AccountingRequest

java.lang.Object
  extended by net.sf.jradius.packet.RadiusPacket
      extended by net.sf.jradius.packet.RadiusRequest
          extended by net.sf.jradius.packet.AccountingRequest
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccountingStatus

public class AccountingRequest
extends RadiusRequest

The RADIUS Accounting-Request Packet. See http://www.iana.org/assignments/radius-types

Author:
David Bird
See Also:
Serialized Form

Field Summary
static int ACCT_STATUS_INTERIM
           
static int ACCT_STATUS_START
           
static int ACCT_STATUS_STOP
           
static byte CODE
           
 
Fields inherited from class net.sf.jradius.packet.RadiusRequest
client
 
Fields inherited from class net.sf.jradius.packet.RadiusPacket
attributes, authenticator, code, identifier, MAX_PACKET_LENGTH, MIN_PACKET_LENGTH, RADIUS_HEADER_LENGTH
 
Constructor Summary
AccountingRequest()
          Default constructor
AccountingRequest(AttributeList attributes)
          Constructor
AccountingRequest(RadiusClient client)
          Constructor
AccountingRequest(RadiusClient client, AttributeList attributes)
          Constructor
 
Method Summary
 byte[] createAuthenticator(byte[] attributes)
          Creates a Accounting-Request Authenticator
 int getAccountingStatusType()
           
 void setAccountingStatusType(int type)
           
 
Methods inherited from class net.sf.jradius.packet.RadiusPacket
addAttribute, addAttributes, findAttribute, findAttribute, findAttributes, getAttributes, getAttributeValue, getAttributeValue, getAuthenticator, getAuthenticator, getCode, getIdentifier, overwriteAttribute, removeAttribute, removeAttribute, setAuthenticator, setCode, setIdentifier, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CODE

public static final byte CODE
See Also:
Constant Field Values

ACCT_STATUS_START

public static final int ACCT_STATUS_START
See Also:
Constant Field Values

ACCT_STATUS_STOP

public static final int ACCT_STATUS_STOP
See Also:
Constant Field Values

ACCT_STATUS_INTERIM

public static final int ACCT_STATUS_INTERIM
See Also:
Constant Field Values
Constructor Detail

AccountingRequest

public AccountingRequest()
Default constructor


AccountingRequest

public AccountingRequest(RadiusClient client)
Constructor

Parameters:
client - The client context to be used (when creating UDP packets)

AccountingRequest

public AccountingRequest(AttributeList attributes)
Constructor

Parameters:
attributes - The attribute list to be used

AccountingRequest

public AccountingRequest(RadiusClient client,
                         AttributeList attributes)
Constructor

Parameters:
client - The client context to be used (when creating UDP packets)
attributes - The attribute list to be used
Method Detail

getAccountingStatusType

public int getAccountingStatusType()

setAccountingStatusType

public void setAccountingStatusType(int type)

createAuthenticator

public byte[] createAuthenticator(byte[] attributes)
Creates a Accounting-Request Authenticator

Overrides:
createAuthenticator in class RadiusPacket
Returns:
Returns 16 bytes
See Also:
RadiusPacket.createAuthenticator(byte[])


Copyright © 2006 The JRadius Project, All Rights Reserved.