N
- P
- public abstract class AbstractRadiusProcessor<C extends ru.bitel.bgbilling.kernel.network.radius.nas.NasConnection<?>,N extends ru.bitel.bgbilling.kernel.network.radius.nas.Nas<C,?,?>,P> extends RadiusProcessor<C,N,P>
RadiusProcessor.ConnectionIterator<C extends ru.bitel.bgbilling.kernel.network.radius.nas.NasConnection<?>,N extends ru.bitel.bgbilling.kernel.network.radius.nas.Nas<C,?,?>>
accountingIgnoreCount, accountingStartCounter, accountingStopCounter, accountingUpdateCounter, accountingUpdateIgnoreCount, antispamIgnoreCount, authenticationAcceptCounter, authenticationIgnoreCount, authenticationRejectCounter, forwardAccessAnswer, forwardAccessRequest, forwardAccountingResponse, forwardAfterPreprocess, forwardAfterProcess, module, nasList, setup
Constructor and Description |
---|
AbstractRadiusProcessor(RadiusSetup setup,
java.lang.String module,
int mid,
ru.bitel.bgbilling.kernel.network.radius.nas.NasList<C,N> nasList) |
Modifier and Type | Method and Description |
---|---|
protected void |
accessRequestImpl(RadiusListenerWorker<N> req,
N nas,
RadiusPacket request,
RadiusPacket response,
java.util.Date date,
RadiusSession<N,P> radiusSession,
int logRecordId,
ConnectionSet connectionSet) |
protected void |
addCommonStatusData(java.lang.StringBuilder report) |
protected int |
authentication(RadiusListenerWorker<?> req,
N nas,
RadiusSession<N,P> session,
RadiusPacket request,
RadiusPacket response,
ConnectionSet connectionSet,
int log_record_id)
Обработка Access-Request разделяется на два этапа - аутентификацию и авторизацию.
|
protected int |
authenticationImpl(RadiusListenerWorker<?> req,
N nas,
RadiusSession<N,P> session,
RadiusPacket request,
RadiusPacket response,
ConnectionSet connectionSet,
int log_record_id,
boolean realtimeTariff) |
protected void |
checkLoginAndContract(Login login,
Contract contract) |
protected boolean |
checkService(java.sql.Connection con,
int cid,
java.util.Set<java.lang.Integer> sidSet) |
protected int |
executeError(java.sql.Connection con,
N nas,
RadiusPacket request,
RadiusPacket response,
int cid,
int lid,
int errorCode,
int log_record_id) |
protected abstract Login |
getLogin(java.sql.Connection con,
int cid,
Card card) |
protected abstract Login |
getLogin(N nas,
RadiusPacket req,
RadiusPacket resp,
java.sql.Connection con,
java.lang.String userName) |
protected abstract LocalEvent |
newRadiusAuthenticationEvent(RadiusPacket request,
RadiusPacket response,
RadiusSession<N,P> radiusSession,
int logRecordId) |
accessRequest, accounting, accountingRequest, addToLog, afterNasListReload, authorization, connections, executeCommand, getAccessAcceptPerMinute, getAccessRejectPerMinute, getAccessRequestIgnorePerMinute, getAccountingStartPerMinute, getAccountingStopPerMinute, getAccountingUpdateIgnorePerMinute, getAccountingUpdatePerMinute, getActiveConnectionsCount, getAntispamIgnorePerMinute, getConnectionList, getNas, getNasList, getStatus, getStoppedConnectionCount, getSuspendedConnectionCount, insertToLog, newInstance, newRadiusSession, postprocessAccessRequest, postprocessAccountingRequest, preprocessAccessRequest, preprocessAccountingRequest, processConnections, reloadConfig, reloadNasList
public AbstractRadiusProcessor(RadiusSetup setup, java.lang.String module, int mid, ru.bitel.bgbilling.kernel.network.radius.nas.NasList<C,N> nasList) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected int executeError(java.sql.Connection con, N nas, RadiusPacket request, RadiusPacket response, int cid, int lid, int errorCode, int log_record_id)
protected abstract Login getLogin(N nas, RadiusPacket req, RadiusPacket resp, java.sql.Connection con, java.lang.String userName)
protected void accessRequestImpl(RadiusListenerWorker<N> req, N nas, RadiusPacket request, RadiusPacket response, java.util.Date date, RadiusSession<N,P> radiusSession, int logRecordId, ConnectionSet connectionSet)
accessRequestImpl
in class RadiusProcessor<C extends ru.bitel.bgbilling.kernel.network.radius.nas.NasConnection<?>,N extends ru.bitel.bgbilling.kernel.network.radius.nas.Nas<C,?,?>,P>
protected abstract LocalEvent newRadiusAuthenticationEvent(RadiusPacket request, RadiusPacket response, RadiusSession<N,P> radiusSession, int logRecordId)
protected int authentication(RadiusListenerWorker<?> req, N nas, RadiusSession<N,P> session, RadiusPacket request, RadiusPacket response, ConnectionSet connectionSet, int log_record_id)
RadiusProcessor
RadiusSession
RadiusProcessor.authorization(RadiusListenerWorker, Nas, RadiusSession, RadiusPacket, RadiusPacket, ConnectionSet, int, ContractManager, Contract, Object, String)
authentication
in class RadiusProcessor<C extends ru.bitel.bgbilling.kernel.network.radius.nas.NasConnection<?>,N extends ru.bitel.bgbilling.kernel.network.radius.nas.Nas<C,?,?>,P>
protected int authenticationImpl(RadiusListenerWorker<?> req, N nas, RadiusSession<N,P> session, RadiusPacket request, RadiusPacket response, ConnectionSet connectionSet, int log_record_id, boolean realtimeTariff)
protected boolean checkService(java.sql.Connection con, int cid, java.util.Set<java.lang.Integer> sidSet)
protected void addCommonStatusData(java.lang.StringBuilder report)