net.sf.jradius.packet
Class AccountingRequest
java.lang.Object
net.sf.jradius.packet.RadiusPacket
net.sf.jradius.packet.RadiusRequest
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
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 |
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
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
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.