public final 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)
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 |
setNasIdentifier(java.lang.String nasIdentifier)
Sets the nas identifier.
|
void |
setNasIpAddress(java.lang.String nasIpAddress)
Sets the nas ip address.
|
void |
setNasIpv6Address(java.lang.String nasIpv6Address)
Sets the nas ipv6 address.
|
void |
setNasPort(long nasPort)
Sets the nas port.
|
void |
setNasPortId(long nasPortId)
Sets the nas port id.
|
void |
setNasPortType(long nasPortType)
Sets the nas port type.
|
void |
setNasRealPort(long nasRealPort)
Sets the nas real port.
|
void |
setRetries(int retries)
Sets the retries.
|
public static final int DEFAULT_RETRY_COUNT
public JRadiusServerImpl(RadiusProtocol protocol, RadiusClientFactory clientFactory)
protocol - the protocolclientFactory - the client factorypublic RadiusResponse authenticate(java.lang.String username, java.lang.String password) throws org.jasig.cas.authentication.PreventedException
RadiusServerauthenticate in interface RadiusServerusername - Non-null username to authenticate.password - Password to authenticate.RadiusResponse on success, null otherwise.org.jasig.cas.authentication.PreventedException - On indeterminate case where authentication was prevented by a system (e.g. IO) error.public void setNasIpAddress(java.lang.String nasIpAddress)
nasIpAddress - the new nas ip addresspublic void setNasIpv6Address(java.lang.String nasIpv6Address)
nasIpv6Address - the new nas ipv6 addresspublic void setNasPort(long nasPort)
nasPort - the new nas portpublic void setNasPortId(long nasPortId)
nasPortId - the new nas port idpublic void setNasIdentifier(java.lang.String nasIdentifier)
nasIdentifier - the new nas identifierpublic void setNasRealPort(long nasRealPort)
nasRealPort - the new nas real portpublic void setNasPortType(long nasPortType)
nasPortType - the new nas port typepublic void setRetries(int retries)
retries - the new retries