net.sourceforge.jradiusclient.packets
Class AccountingRequest
java.lang.Object
|
+--net.sourceforge.jradiusclient.RadiusPacket
|
+--net.sourceforge.jradiusclient.packets.AccountingRequest
- Direct Known Subclasses:
- DisableAccountingRequest, EnableAccountingRequest, StartAccountingRequest, StopAccountingRequest, UpdateAccountingRequest
- public class AccountingRequest
- extends RadiusPacket
Released under the LGPL
- Version:
- $Revision: 1.3 $
- Author:
- Robert J. Loihl
Fields inherited from class net.sourceforge.jradiusclient.RadiusPacket |
ACCESS_ACCEPT, ACCESS_CHALLENGE, ACCESS_REJECT, ACCESS_REQUEST, ACCOUNTING_MESSAGE, ACCOUNTING_REQUEST, ACCOUNTING_RESPONSE, ACCOUNTING_STATUS, EMPTYSTRING, MAX_PACKET_LENGTH, MIN_PACKET_LENGTH, PASSWORD_ACCEPT, PASSWORD_REJECT, PASSWORD_REQUEST, RADIUS_HEADER_LENGTH, RESERVED, STATUS_CLIENT, STATUS_SERVER |
Constructor Summary |
AccountingRequest(java.lang.String userName,
byte[] serviceType,
java.lang.String sessionId)
construct an account request packet for this session |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
START_ACCOUNTING_SERVICE_TYPE
public static final byte[] START_ACCOUNTING_SERVICE_TYPE
STOP_ACCOUNTING_SERVICE_TYPE
public static final byte[] STOP_ACCOUNTING_SERVICE_TYPE
UPDATE_ACCOUNTING_SERVICE_TYPE
public static final byte[] UPDATE_ACCOUNTING_SERVICE_TYPE
ENABLE_ACCOUNTING_SERVICE_TYPE
public static final byte[] ENABLE_ACCOUNTING_SERVICE_TYPE
DISABLE_ACCOUNTING_SERVICE_TYPE
public static final byte[] DISABLE_ACCOUNTING_SERVICE_TYPE
AccountingRequest
public AccountingRequest(java.lang.String userName,
byte[] serviceType,
java.lang.String sessionId)
throws InvalidParameterException
- construct an account request packet for this session
- Parameters:
userName
- serviceType
-
- Throws:
InvalidParameterException
validateAttribute
public void validateAttribute(RadiusAttribute radiusAttribute)
throws InvalidParameterException
- This method implements a callback from the super class RadiusPacket to validate input
- Overrides:
validateAttribute
in class RadiusPacket
- Parameters:
radiusAttribute
- the attribute to validate
- Throws:
InvalidParameterException
- if the RadiusAttribute does not pass validation