public class JRadiusServerImpl extends java.lang.Object implements RadiusServer
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RETRY_COUNT
Default retry count, 3.
|
DEFAULT_PORT_ACCOUNTING, DEFAULT_PORT_AUTHENTICATION
Constructor and Description |
---|
JRadiusServerImpl(RadiusProtocol protocol,
RadiusClientFactory clientFactory,
int retries,
java.lang.String nasIpAddress,
java.lang.String nasIpv6Address,
long nasPort,
long nasPortId,
java.lang.String nasIdentifier,
long nasRealPort)
Instantiates a new server implementation
with the radius protocol and client factory specified.
|
Modifier and Type | Method and Description |
---|---|
RadiusResponse |
authenticate(java.lang.String username,
java.lang.String password)
Method to authenticate a set of credentials.
|
void |
setNasPortType(long nasPortType)
Sets the nas port type.
|
java.lang.String |
toString() |
public static final int DEFAULT_RETRY_COUNT
public JRadiusServerImpl(RadiusProtocol protocol, RadiusClientFactory clientFactory, int retries, java.lang.String nasIpAddress, java.lang.String nasIpv6Address, long nasPort, long nasPortId, java.lang.String nasIdentifier, long nasRealPort)
protocol
- the protocolclientFactory
- the client factoryretries
- the new retriesnasIpAddress
- the new nas ip addressnasIpv6Address
- the new nas ipv6 addressnasPort
- the new nas portnasPortId
- the new nas port idnasIdentifier
- the new nas identifiernasRealPort
- the new nas real portpublic RadiusResponse authenticate(java.lang.String username, java.lang.String password) throws java.lang.Exception
RadiusServer
authenticate
in interface RadiusServer
username
- Non-null username to authenticate.password
- Password to authenticate.RadiusResponse
on success, null otherwise.java.lang.Exception
- On indeterminate case where authentication was prevented by a system (e.g. IO) error.public void setNasPortType(long nasPortType)
nasPortType
- the new nas port typepublic java.lang.String toString()
toString
in class java.lang.Object