|
Core API 7.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provide information of a service session to a script service.
| Method Summary | |
String |
getAccountingId()
Get the user accounting ID. |
CommandChannel |
getCommandChannel()
Returns the CommandChannel this service session attached to. |
LogWriter |
getDebugLog()
Returns a LogWriter object that can be used to print messages to the DEBUG log. |
byte[] |
getDhcpPacket()
Get DHCP options returned for DHCP users. |
int |
getDownStreamBandwidth()
Get the service down stream bandwidth. |
LogWriter |
getErrorLog()
Returns a LogWriter object that can be used to print messages to the ERROR log. |
String |
getHostName()
Get the host name. |
String |
getIfRadiusClass()
Get the RadiusClass. |
LogWriter |
getInfoLog()
Returns a LogWriter object that can be used to print messages to the INFO log. |
String |
getInterfaceAlias()
Get the interface alias, i.e. alternative description of managed interface. |
String |
getInterfaceDescr()
Get the interface description, i.e. a textual description of the managed interface. |
String |
getInterfaceName()
Get the interface name. |
long |
getInterfaceSpeed()
Get the interface speed |
String |
getLoginName()
Get the user's login name. |
InetAddress |
getNasInetAddress()
Get the IP address the virtual router uses for accounting purposes. |
int |
getNasPort()
Get NAS-Port, i.e. a numerical index that identifies the layer 2 interface. |
String |
getPortId()
Get NAS-Port-ID, i.e. a name of the interface including layer 2 access information. |
String |
getPrimaryUserName()
Get the primary user name. |
InetAddress |
getRouterDynRadiusAddr()
|
String |
getRouterName()
Get the router name. |
Object |
getServiceAttribute(String attributeName)
Get the value for the named attribute of the service. |
String[] |
getServiceAttributeNames()
Get the names of the attributes of the service. |
String |
getServiceBundle()
Get ServiceBundle string associated with authenticated lifecyle handle. |
DirContext |
getServiceDirectory()
Returns a javax.naming.DirContext object that can be used to access the
directory that stores SAE's service definitions, as specified by the following
SAE configuration parameters:
Service repository address (i.e. |
String |
getServiceName()
Get the service name. |
String |
getServiceSessionName()
Get the session name. |
String |
getServiceSessionTag()
Get the service session tag. |
String |
getSessionId()
Get the session id. |
String |
getSessionVolumeQuota()
Get the session volume quota. |
long |
getStartTime()
Get the start time. |
String |
getSubscriptionName()
Get the subscription name. |
String[] |
getSubstitutions()
Get the substitutions. |
int |
getTerminateCause()
Gets the reason the service session was stopped |
int |
getUpStreamBandwidth()
Get the service up stream bandwidth. |
DirContext |
getUserDirectory()
Returns a javax.naming.DirContext object that can be used to access the
directory that stores SAE's user profiles, as specified by the following
SAE configuration parameters:
User repository address (i.e. |
String |
getUserDn()
Get the LDAP distinguished name of the loaded user profile assigned to the user. |
InetAddress |
getUserInetAddress()
Get the InetAddress associated with PPP or DHCP user. |
String |
getUserMacAddress()
Get MAC address of DHCP user. |
String[] |
getUserRadiusClass()
Get radius class. |
String |
getUserSessionId()
Get the user session ID. |
String |
getUserType()
Get the user type. |
boolean |
isBeingRemoved()
Returns true if this service session is being removed if true - the script service must be cleaned up there will be no furthur attempts to collect accounting |
boolean |
isLoggingIn()
Returns true if this user session is in the process of activating the automatically on login services |
boolean |
isLoggingOut()
Returns true if this user session is in the process of or has previously been logged out |
RadiusResponse |
sendDynamicRadius(InetSocketAddress dynRadiusServer,
byte code,
int action,
Map attrs,
String config,
InetSocketAddress dynRadiusClient,
String shareSecret,
int retry)
Send dynamic authorization request to radius client |
void |
stopService(int terminateReason)
Deactivate the service session. |
| Method Detail |
public String getHostName()
public String getServiceName()
public String getServiceSessionName()
public String getServiceSessionTag()
public String getSubscriptionName()
public long getStartTime()
public String getSessionId()
public String[] getSubstitutions()
public int getUpStreamBandwidth()
public int getDownStreamBandwidth()
public String getSessionVolumeQuota()
public int getTerminateCause()
public String[] getServiceAttributeNames()
public Object getServiceAttribute(String attributeName)
Object must be cast to the appropriate type.
If the attribute is multi-valued, the returned Object
must be cast to an array of the appropriate type.
attributeName -
public String getRouterName()
public String getInterfaceName()
public String getInterfaceAlias()
public String getInterfaceDescr()
public long getInterfaceSpeed()
public String getPortId()
public int getNasPort()
public String getIfRadiusClass()
public InetAddress getNasInetAddress()
public String getLoginName()
public String getPrimaryUserName()
public String getServiceBundle()
public InetAddress getUserInetAddress()
public String getUserType()
public String getUserMacAddress()
public byte[] getDhcpPacket()
public String getAccountingId()
public String getUserDn()
public String[] getUserRadiusClass()
public String getUserSessionId()
public boolean isLoggingOut()
public boolean isLoggingIn()
public boolean isBeingRemoved()
public DirContext getServiceDirectory()
javax.naming.DirContext object that can be used to access the
directory that stores SAE's service definitions, as specified by the following
SAE configuration parameters:
DirContext object must not be modified. Modifying the returned DirContext
object may affect the stability of the SAE server.
public DirContext getUserDirectory()
javax.naming.DirContext object that can be used to access the
directory that stores SAE's user profiles, as specified by the following
SAE configuration parameters:
DirContext object must not be modified. Modifying the returned DirContext
object may affect the stability of the SAE server.
public LogWriter getDebugLog()
public LogWriter getInfoLog()
public LogWriter getErrorLog()
public void stopService(int terminateReason)
throws ScriptServiceException
terminateReason - for the Radius attribute Acct-Terminate-Cause.
ScriptServiceExceptionpublic CommandChannel getCommandChannel()
public RadiusResponse sendDynamicRadius(InetSocketAddress dynRadiusServer,
byte code,
int action,
Map attrs,
String config,
InetSocketAddress dynRadiusClient,
String shareSecret,
int retry)
throws ScriptServiceException
dynRadiusServer - Dynamic radius source IP and port
If not provided, SAE uses configuration attributes
AccountingMgr.local.address and AccountingMgr.local.port
insteadcode - the radius packet code field.
e.g. 40 - Disconnect-Request
43 - CoA-Requestaction - customized action used by SAE generating dynamic radius packet
see customer documentation for detailsattrs - customer specific radius attributes appending to radius packet
key: radius attribute name
e.g.
value: valueconfig - flexible radius plug-in like configuration for
configuring the radius packet content, the format is:
action.radiusAttributeName = pluginEventAttribute
see SDX customer documentation for available plug-in event attribute
e.g.
1.User-Name = accountingId\n1.vendor-specific.WISPr.Location-ID = interfaceAlias
see customer documentation for detailsdynRadiusClient - Dynamic radius client IP and portshareSecret - dynamic radius share secret,retry - number of retry for sending dynamic radius packet by underlying library in case of no radius response being received
the retry interval is 3 seconds.
ScriptServiceException - when no response is received or there is connection error with radius client.public InetAddress getRouterDynRadiusAddr()
|
Core API 7.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||