public class RadiusSession extends Object implements JRadiusSession, Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
ACCT_ONLY_STARTED, ACCT_ONLY_STOPPED, ACCT_STARTED, ACCT_STOPPED, AUTH_ACCEPTED, AUTH_PENDING, AUTH_REJECTED, RADIUS_ERROR, SESSION_ATTRIBUTE_LOCATION_CITY, SESSION_ATTRIBUTE_LOCATION_COUNTRY_CODE, SESSION_ATTRIBUTE_LOCATION_ID, SESSION_ATTRIBUTE_LOCATION_NAME, SESSION_ATTRIBUTE_LOCATION_STATE_PROVINCE, SESSION_ATTRIBUTE_LOCATION_TYPE, SESSION_STARTED, SESSION_STOPPED, UNKNOWN_STATE| Constructor and Description |
|---|
RadiusSession() |
RadiusSession(String session) |
public static final long serialVersionUID
public RadiusSession()
public RadiusSession(String session)
public void lock()
lock in interface JRadiusSessionpublic void unlock()
unlock in interface JRadiusSessionpublic boolean isAccountingReversed()
isAccountingReversed in interface JRadiusSessionpublic void setAttribute(String name, Serializable value)
setAttribute in interface JRadiusSessionpublic Serializable getAttribute(String name)
getAttribute in interface JRadiusSessionpublic boolean isLogging()
isLogging in interface JRadiusSessionpublic JRadiusLogEntry getLogEntry(JRadiusEvent event, String key)
getLogEntry in interface JRadiusSessionpublic JRadiusLogEntry getLogEntry(JRadiusRequest request) throws RadiusException
getLogEntry in interface JRadiusSessionRadiusExceptionpublic void addLogMessage(JRadiusRequest request, String message) throws RadiusException
addLogMessage in interface JRadiusSessionRadiusExceptionpublic void commitLogEntries(int result)
commitLogEntries in interface JRadiusSessionpublic void commitLogEntry(JRadiusLogEntry entry, int result)
commitLogEntry in interface JRadiusSessionpublic boolean onPreProcessing(JRadiusRequest request) throws RadiusException
onPreProcessing in interface JRadiusSessionRadiusExceptionpublic void onPostProcessing(JRadiusRequest request) throws RadiusException
onPostProcessing in interface JRadiusSessionRadiusExceptionpublic void onAuthorization(JRadiusRequest request) throws RadiusException
onAuthorization in interface JRadiusSessionRadiusExceptionpublic void onPostAuthentication(JRadiusRequest request) throws RadiusException
onPostAuthentication in interface JRadiusSessionRadiusExceptionpublic void stopSession(boolean force)
public void initSession(JRadiusRequest request) throws RadiusException
initSession in interface JRadiusSessionRadiusExceptionpublic void onAccounting(JRadiusRequest request) throws RadiusException
onAccounting in interface JRadiusSessionRadiusExceptionprotected boolean checkSessionState(int state)
public void ensureSessionState(JRadiusRequest request, int state) throws RadiusException
ensureSessionState in interface JRadiusSessionRadiusExceptionpublic boolean onNoAccountingStatusType(JRadiusRequest request) throws RadiusException
onNoAccountingStatusType in interface JRadiusSessionRadiusExceptionpublic String getUsername()
getUsername in interface JRadiusSessionpublic void setUsername(String username)
setUsername in interface JRadiusSessionusername - The username to set.public String getRealm()
getRealm in interface JRadiusSessionpublic void setRealm(String realm)
setRealm in interface JRadiusSessionrealm - The realm to set.public String getPassword()
getPassword in interface JRadiusSessionpublic void setPassword(String password)
setPassword in interface JRadiusSessionpassword - The password to set.public String getSessionKey()
getSessionKey in interface JRadiusSessionpublic void setSessionKey(String sessionKey)
setSessionKey in interface JRadiusSessionsessionKey - The sessionKey to set.public String getSessionId()
getSessionId in interface JRadiusSessionpublic void setSessionId(String sessionId)
setSessionId in interface JRadiusSessionsessionId - The sessionId to set.public Long getServiceType()
getServiceType in interface JRadiusSessionpublic void setServiceType(Long serviceType)
setServiceType in interface JRadiusSessionserviceType - The serviceType to set.public Long getIdleTimeout()
getIdleTimeout in interface JRadiusSessionpublic void setIdleTimeout(Long idleTimeout)
setIdleTimeout in interface JRadiusSessionidleTimeout - The idleTimeout to set.public Long getInterimInterval()
getInterimInterval in interface JRadiusSessionpublic void setInterimInterval(Long interimInterval)
setInterimInterval in interface JRadiusSessioninterimInterval - The interimInterval to set.public Long getSessionTimeout()
getSessionTimeout in interface JRadiusSessionpublic void setSessionTimeout(Long sessionTimeout)
setSessionTimeout in interface JRadiusSessionsessionTimeout - The sessionTimeout to set.public Long getSessionTime()
getSessionTime in interface JRadiusSessionpublic void setSessionTime(Long sessionTime)
setSessionTime in interface JRadiusSessionsessionTime - The sessionTime to set.public Date getStartTime()
getStartTime in interface JRadiusSessionpublic void setStartTime(Date startTime)
setStartTime in interface JRadiusSessionstartTime - The startTime to set.public Date getLastInterimTime()
getLastInterimTime in interface JRadiusSessionpublic void setLastInterimTime(Date lastInterimTime)
setLastInterimTime in interface JRadiusSessionlastInterimTime - The lastInterimTime to set.public Date getStopTime()
getStopTime in interface JRadiusSessionpublic void setStopTime(Date stopTime)
setStopTime in interface JRadiusSessionstopTime - The stopTime to set.public Long getGigaWordsIn()
getGigaWordsIn in interface JRadiusSessionpublic void setGigaWordsIn(Long gigaWordsIn)
setGigaWordsIn in interface JRadiusSessiongigaWordsIn - The gigaWordsIn to set.public Long getGigaWordsOut()
getGigaWordsOut in interface JRadiusSessionpublic void setGigaWordsOut(Long gigaWordsOut)
setGigaWordsOut in interface JRadiusSessiongigaWordsOut - The gigaWordsOut to set.public Long getOctetsIn()
getOctetsIn in interface JRadiusSessionpublic void setOctetsIn(Long octetsIn)
setOctetsIn in interface JRadiusSessionoctetsIn - The octetsIn to set.public Long getOctetsOut()
getOctetsOut in interface JRadiusSessionpublic void setOctetsOut(Long octetsOut)
setOctetsOut in interface JRadiusSessionoctetsOut - The octetsOut to set.public Long getTotalOctetsIn()
getTotalOctetsIn in interface JRadiusSessionpublic Long getTotalOctetsOut()
getTotalOctetsOut in interface JRadiusSessionpublic Long getPacketsIn()
getPacketsIn in interface JRadiusSessionpublic void setPacketsIn(Long packetsIn)
setPacketsIn in interface JRadiusSessionpacketsIn - The packetsIn to set.public Long getPacketsOut()
getPacketsOut in interface JRadiusSessionpublic void setPacketsOut(Long packetsOut)
setPacketsOut in interface JRadiusSessionpacketsOut - The packetsOut to set.public Long getTerminateCause()
getTerminateCause in interface JRadiusSessionpublic void setTerminateCause(Long terminateCause)
setTerminateCause in interface JRadiusSessionterminateCause - The terminateCause to set.public byte[][] getRadiusClass()
getRadiusClass in interface JRadiusSessionpublic void setRadiusClass(byte[][] radiusClass)
setRadiusClass in interface JRadiusSessionradiusClass - The radiusClass to set.public int getSessionState()
getSessionState in interface JRadiusSessionpublic void setSessionState(int sessionState)
setSessionState in interface JRadiusSessionsessionState - The sessionState to set.public String getProxyToRealm()
getProxyToRealm in interface JRadiusSessionpublic void setProxyToRealm(String proxyToRealm)
setProxyToRealm in interface JRadiusSessionproxyToRealm - The proxyToRealm to set.public boolean isSecured()
isSecured in interface JRadiusSessionpublic void setSecured(boolean secured)
setSecured in interface JRadiusSessionsecured - The secured to set.public String getCalledStationId()
getCalledStationId in interface JRadiusSessionpublic void setCalledStationId(String calledStation)
setCalledStationId in interface JRadiusSessioncalledStation - The calledStation to set.public String getCallingStationId()
getCallingStationId in interface JRadiusSessionpublic void setCallingStationId(String callingStation)
setCallingStationId in interface JRadiusSessioncallingStation - The callingStation to set.public String getConnectInfo()
getConnectInfo in interface JRadiusSessionpublic void setConnectInfo(String connectInfo)
setConnectInfo in interface JRadiusSessionconnectInfo - The connectInfo to set.public String getClientIPAddress()
getClientIPAddress in interface JRadiusSessionpublic String getFramedIPAddress()
getFramedIPAddress in interface JRadiusSessionpublic void setFramedIPAddress(String framedIPAddress)
setFramedIPAddress in interface JRadiusSessionframedIPAddress - The framedIPAddress to set.public void setClientIPAddress(String clientIP)
setClientIPAddress in interface JRadiusSessionclientIP - The clientIP to set.public String getNasIdentifier()
getNasIdentifier in interface JRadiusSessionpublic void setNasIdentifier(String nasID)
setNasIdentifier in interface JRadiusSessionnasID - The nasID to set.public String getNasIPAddress()
getNasIPAddress in interface JRadiusSessionpublic void setNasIPAddress(String nasIP)
setNasIPAddress in interface JRadiusSessionnasIP - The nasIP to set.public Long getMaxBandwidthDown()
getMaxBandwidthDown in interface JRadiusSessionpublic void setMaxBandwidthDown(Long maxBandwidthDown)
setMaxBandwidthDown in interface JRadiusSessionpublic Long getMaxBandwidthUp()
getMaxBandwidthUp in interface JRadiusSessionpublic void setMaxBandwidthUp(Long maxBandwidthUp)
setMaxBandwidthUp in interface JRadiusSessionpublic Long getMinBandwidthDown()
getMinBandwidthDown in interface JRadiusSessionpublic void setMinBandwidthDown(Long minBandwidthDown)
setMinBandwidthDown in interface JRadiusSessionpublic Long getMinBandwidthUp()
getMinBandwidthUp in interface JRadiusSessionpublic void setMinBandwidthUp(Long minBandwidthUp)
setMinBandwidthUp in interface JRadiusSessionpublic long getTimeStamp()
getTimeStamp in interface JRadiusSessionpublic void setTimeStamp(long timeStamp)
setTimeStamp in interface JRadiusSessiontimeStamp - The timeStamp to set.public boolean isNewSession()
public void setNewSession(boolean newSession)
newSession - The newSession to set.public String getJRadiusKey()
getJRadiusKey in interface JRadiusSessionpublic void setJRadiusKey(String jRadiusKey)
setJRadiusKey in interface JRadiusSessionpublic JRadiusRequest getLastRadiusRequest()
public void setLastRadiusRequest(JRadiusRequest lastRadiusRequest)
public Long getMaxOctetsDown()
getMaxOctetsDown in interface JRadiusSessionpublic void setMaxOctetsDown(Long maxOctetsDown)
setMaxOctetsDown in interface JRadiusSessionpublic Long getMaxOctetsUp()
getMaxOctetsUp in interface JRadiusSessionpublic void setMaxOctetsUp(Long maxOctetsUp)
setMaxOctetsUp in interface JRadiusSessionpublic Long getMaxOctetsTotal()
getMaxOctetsTotal in interface JRadiusSessionpublic void setMaxOctetsTotal(Long maxOctetsTotal)
setMaxOctetsTotal in interface JRadiusSessionpublic String getNasType()
getNasType in interface JRadiusSessionpublic void setNasType(String nasType)
setNasType in interface JRadiusSessionpublic String getRedirectURL()
getRedirectURL in interface JRadiusSessionpublic void setRedirectURL(String redirectURL)
setRedirectURL in interface JRadiusSessionpublic Date getAuthorizeTime()
public void setAuthorizeTime(Date authorizeTime)
public Long getNasPortType()
public void setNasPortType(Long nasPortType)
public Long getAcctAuthentic()
public void setAcctAuthentic(Long acctAuthentic)
public byte[] getRadiusState()
getRadiusState in interface JRadiusSessionpublic void setRadiusState(byte[] radiusState)
setRadiusState in interface JRadiusSessionCopyright © 2017. All rights reserved.