|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tinyradius.packet.RadiusPacket
org.tinyradius.packet.AccountingRequest
public class AccountingRequest
This class represents a Radius packet of the type "Accounting-Request".
| Field Summary | |
|---|---|
static int |
ACCT_STATUS_TYPE_ACCOUNTING_OFF
Acct-Status-Type: Accounting-Off |
static int |
ACCT_STATUS_TYPE_ACCOUNTING_ON
Acct-Status-Type: Accounting-On |
static int |
ACCT_STATUS_TYPE_INTERIM_UPDATE
Acct-Status-Type: Interim Update/Alive |
static int |
ACCT_STATUS_TYPE_START
Acct-Status-Type: Start |
static int |
ACCT_STATUS_TYPE_STOP
Acct-Status-Type: Stop |
| Fields inherited from class org.tinyradius.packet.RadiusPacket |
|---|
ACCESS_ACCEPT, ACCESS_CHALLENGE, ACCESS_REJECT, ACCESS_REQUEST, ACCOUNTING_MESSAGE, ACCOUNTING_REQUEST, ACCOUNTING_RESPONSE, ACCOUNTING_STATUS, COA_ACK, COA_NAK, COA_REQUEST, DISCONNECT_ACK, DISCONNECT_NAK, DISCONNECT_REQUEST, MAX_PACKET_LENGTH, PASSWORD_ACCEPT, PASSWORD_REJECT, PASSWORD_REQUEST, RADIUS_HEADER_LENGTH, RESERVED, STATUS_ACCEPT, STATUS_CLIENT, STATUS_REJECT, STATUS_REQUEST, STATUS_SERVER |
| Constructor Summary | |
|---|---|
AccountingRequest()
Constructs an empty Accounting-Request to be received by a Radius client. |
|
AccountingRequest(java.lang.String userName,
int acctStatusType)
Constructs an Accounting-Request packet to be sent to a Radius server. |
|
| Method Summary | |
|---|---|
int |
getAcctStatusType()
Retrieves the user name from the User-Name attribute. |
java.lang.String |
getUserName()
Retrieves the user name from the User-Name attribute. |
void |
setAcctStatusType(int acctStatusType)
Sets the Acct-Status-Type attribute of this Accountnig-Request. |
void |
setUserName(java.lang.String userName)
Sets the User-Name attribute of this Accountnig-Request. |
protected byte[] |
updateRequestAuthenticator(java.lang.String sharedSecret,
int packetLength,
byte[] attributes)
Calculates the request authenticator as specified by RFC 2866. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ACCT_STATUS_TYPE_START
public static final int ACCT_STATUS_TYPE_STOP
public static final int ACCT_STATUS_TYPE_INTERIM_UPDATE
public static final int ACCT_STATUS_TYPE_ACCOUNTING_ON
public static final int ACCT_STATUS_TYPE_ACCOUNTING_OFF
| Constructor Detail |
|---|
public AccountingRequest(java.lang.String userName,
int acctStatusType)
userName - user nameacctStatusType - ACCT_STATUS_TYPE_*public AccountingRequest()
| Method Detail |
|---|
public void setUserName(java.lang.String userName)
userName - user name to set
public java.lang.String getUserName()
throws RadiusException
RadiusExceptionpublic void setAcctStatusType(int acctStatusType)
acctStatusType - ACCT_STATUS_TYPE_* to set
public int getAcctStatusType()
throws RadiusException
RadiusException
protected byte[] updateRequestAuthenticator(java.lang.String sharedSecret,
int packetLength,
byte[] attributes)
updateRequestAuthenticator in class RadiusPacketsharedSecret - shared secretpacketLength - length of the final Radius packetattributes - attribute data
RadiusPacket.updateRequestAuthenticator(java.lang.String, int, byte[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||