| 程序包 | 说明 |
|---|---|
| org.tinyradius.attribute |
This package contains classes for Radius attributes and Radius
attribute types.
|
| org.tinyradius.packet |
This package contains classes for encoding and decoding Radius packets.
|
| org.tinyradius.proxy |
This package contains classes that can be used to implement
a proxying Radius server using TinyRadius.
|
| org.tinyradius.util |
This package contains helper classes for implementing Radius clients
and servers.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RadiusAttribute |
VendorSpecificAttribute.getSubAttribute(String type)
Returns a single sub-attribute of the given type name.
|
String |
VendorSpecificAttribute.getSubAttributeValue(String type)
Returns the value of the Radius attribute of the given type or null if
there is no such attribute.
|
void |
VendorSpecificAttribute.readAttribute(byte[] data,
int offset,
int length)
Reads a Vendor-Specific attribute and decodes the internal sub-attribute
structure.
|
void |
RadiusAttribute.readAttribute(byte[] data,
int offset,
int length)
Reads in this attribute from the passed byte array.
|
void |
IpAttribute.readAttribute(byte[] data,
int offset,
int length)
Check attribute length.
|
void |
IntegerAttribute.readAttribute(byte[] data,
int offset,
int length)
Check attribute length.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
RadiusPacket.checkRequestAuthenticator(String sharedSecret,
int packetLength,
byte[] attributes)
Checks the request authenticator against the supplied shared secret.
|
protected void |
AccountingRequest.checkRequestAuthenticator(String sharedSecret,
int packetLength,
byte[] attributes)
Checks the received request authenticator as specified by RFC 2866.
|
protected void |
RadiusPacket.checkResponseAuthenticator(String sharedSecret,
int packetLength,
byte[] attributes,
byte[] requestAuthenticator)
This method checks the authenticator of this Radius packet.
|
protected static RadiusPacket |
RadiusPacket.decodePacket(Dictionary dictionary,
InputStream in,
String sharedSecret,
RadiusPacket request)
Reads a Radius packet from the given input stream and
creates an appropiate RadiusPacket descendant object.
|
protected void |
RadiusPacket.decodeRequestAttributes(String sharedSecret)
Can be overriden to decode encoded request attributes such as
User-Password.
|
protected void |
AccessRequest.decodeRequestAttributes(String sharedSecret)
Decrypts the User-Password attribute.
|
static RadiusPacket |
RadiusPacket.decodeRequestPacket(Dictionary dictionary,
InputStream in,
String sharedSecret)
Reads a Radius request packet from the given input stream and
creates an appropiate RadiusPacket descendant object.
|
static RadiusPacket |
RadiusPacket.decodeRequestPacket(InputStream in,
String sharedSecret)
Reads a Radius request packet from the given input stream and
creates an appropiate RadiusPacket descendant object.
|
static RadiusPacket |
RadiusPacket.decodeResponsePacket(Dictionary dictionary,
InputStream in,
String sharedSecret,
RadiusPacket request)
Reads a Radius response packet from the given input stream and
creates an appropiate RadiusPacket descendant object.
|
static RadiusPacket |
RadiusPacket.decodeResponsePacket(InputStream in,
String sharedSecret,
RadiusPacket request)
Reads a Radius response packet from the given input stream and
creates an appropiate RadiusPacket descendant object.
|
int |
AccountingRequest.getAcctStatusType()
Retrieves the user name from the User-Name attribute.
|
String |
AccountingRequest.getUserName()
Retrieves the user name from the User-Name attribute.
|
boolean |
AccessRequest.verifyPassword(String plaintext)
Verifies that the passed plain-text password matches the password
(hash) send with this Access-Request packet.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected RadiusPacket |
RadiusProxy.handlePacket(InetSocketAddress localAddress,
InetSocketAddress remoteAddress,
RadiusPacket request,
String sharedSecret)
Handles packets coming in on the proxy port.
|
protected void |
RadiusProxy.proxyPacketReceived(RadiusPacket packet,
InetSocketAddress remote)
Sends an answer to a proxied packet back to the original host.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RadiusPacket |
RadiusServer.accessRequestReceived(AccessRequest accessRequest,
InetSocketAddress client)
Constructs an answer for an Access-Request packet.
|
RadiusPacket |
RadiusClient.account(AccountingRequest request)
Sends an Accounting-Request packet and receives a response
packet.
|
RadiusPacket |
RadiusServer.accountingRequestReceived(AccountingRequest accountingRequest,
InetSocketAddress client)
Constructs an answer for an Accounting-Request packet.
|
RadiusPacket |
RadiusClient.authenticate(AccessRequest request)
Sends an Access-Request packet and receives a response
packet.
|
boolean |
RadiusClient.authenticate(String userName,
String password)
Authenticates a user.
|
static RadiusPacket |
RadiusClient.communicate(RadiusEndpoint remoteServer,
RadiusPacket request)
Sends the specified packet to the specified Radius server endpoint.
|
RadiusPacket |
RadiusClient.communicate(RadiusPacket request,
int port)
Sends a Radius packet to the server and awaits an answer.
|
protected RadiusPacket |
RadiusServer.handlePacket(InetSocketAddress localAddress,
InetSocketAddress remoteAddress,
RadiusPacket request,
String sharedSecret)
Handles the received Radius packet and constructs a response.
|
protected RadiusPacket |
RadiusClient.makeRadiusPacket(DatagramPacket packet,
RadiusPacket request)
Creates a RadiusPacket from a received datagram packet.
|
protected RadiusPacket |
RadiusServer.makeRadiusPacket(DatagramPacket packet,
String sharedSecret)
Creates a RadiusPacket for a Radius request from a received
datagram packet.
|
Copyright © 2016. All rights reserved.