public class AccountingRequest extends RadiusRequest
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCT_STATUS_ACCOUNTING_OFF |
static int |
ACCT_STATUS_ACCOUNTING_ON |
static int |
ACCT_STATUS_INTERIM |
static int |
ACCT_STATUS_START |
static int |
ACCT_STATUS_STOP |
static byte |
CODE |
clientattributes, authenticator, code, identifier, MAX_PACKET_LENGTH, MIN_PACKET_LENGTH, RADIUS_HEADER_LENGTH, recyclable, recycled| Constructor and Description |
|---|
AccountingRequest()
Default constructor
|
AccountingRequest(AttributeList attributes)
Constructor
|
AccountingRequest(RadiusClient client)
Constructor
|
AccountingRequest(RadiusClient client,
AttributeList attributes)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createAuthenticator(byte[] attributes,
int offset,
int length,
String sharedSecret)
Creates a Accounting-Request Authenticator
|
int |
getAccountingStatusType() |
void |
setAccountingStatusType(int type) |
boolean |
verifyAuthenticator(String sharedSecret) |
setRadiusClientaddAttribute, addAttributes, findAttribute, findAttribute, findAttributes, getAttributes, getAttributeValue, getAttributeValue, getAuthenticator, getAuthenticator, getAuthenticator, getCode, getIdentifier, isRecyclable, overwriteAttribute, removeAttribute, removeAttribute, setAuthenticator, setCode, setIdentifier, toString, toStringpublic static final byte CODE
public static final int ACCT_STATUS_START
public static final int ACCT_STATUS_STOP
public static final int ACCT_STATUS_INTERIM
public static final int ACCT_STATUS_ACCOUNTING_ON
public static final int ACCT_STATUS_ACCOUNTING_OFF
public AccountingRequest()
public AccountingRequest(RadiusClient client)
client - The client context to be used (when creating UDP packets)public AccountingRequest(AttributeList attributes)
attributes - The attribute list to be usedpublic AccountingRequest(RadiusClient client, AttributeList attributes)
client - The client context to be used (when creating UDP packets)attributes - The attribute list to be usedpublic int getAccountingStatusType()
public void setAccountingStatusType(int type)
public byte[] createAuthenticator(byte[] attributes,
int offset,
int length,
String sharedSecret)
createAuthenticator in class RadiusPacketnet.jradius.packet.RadiusPacket#createAuthenticator(byte[])public boolean verifyAuthenticator(String sharedSecret)
verifyAuthenticator in class RadiusPacketCopyright © 2017. All rights reserved.