|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object dk.i1.diameter.session.BaseSession dk.i1.diameter.session.AASession
public class AASession
A session type that uses the AA messages for authentication/authorization Subclasses should override collectAARInfo() and processAAAInfo().
AAASession instances logs with the name "dk.i1.diameter.session.AASession", so you can get detailed logging (including hex-dumps of incoming and outgoing packets) by putting "dk.i1.diameter.session.AASession.level = ALL" into your log.properties file (or equivalent)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class dk.i1.diameter.session.BaseSession |
---|
BaseSession.State |
Field Summary |
---|
Fields inherited from class dk.i1.diameter.session.BaseSession |
---|
session_auth_timers |
Constructor Summary | |
---|---|
AASession(int auth_app_id,
SessionManager session_manager)
|
Method Summary | |
---|---|
protected void |
collectAARInfo(Message request)
Collect information to send in AAR. |
void |
handleAAA(Message msg)
Handle a AAA message. |
void |
handleAnswer(Message answer,
Object state)
Handle an answer. |
void |
handleNonAnswer(int command_code,
Object state)
Handle an answer. |
protected boolean |
processAAAInfo(Message answer)
Process information AAA message. |
protected void |
startAuth()
Start the session by sending the first authentication/authorization. |
protected void |
startReauth()
Send re-authorization. |
Methods inherited from class dk.i1.diameter.session.BaseSession |
---|
addCommonStuff, authAppId, authFailed, authInProgress, authInProgress, authSuccessful, calcNextTimeout, closeSession, closeSession, collectSTRInfo, firstAuthTime, getDestinationRealm, getResultCode, getSessionIdOptionalPart, handleASR, handleRAR, handleRequest, handleSTA, handleTimeout, newStatePost, newStatePre, openSession, sessionId, sessionManager, state, stateMaintained, stateMaintained, updateSessionTimeout |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AASession(int auth_app_id, SessionManager session_manager)
Method Detail |
---|
public void handleAnswer(Message answer, Object state)
BaseSession.handleAnswer(dk.i1.diameter.Message, java.lang.Object)
handleAnswer
in interface Session
handleAnswer
in class BaseSession
answer
- The answer messagestate
- The state object specified in sendRequest()public void handleNonAnswer(int command_code, Object state)
BaseSession.handleNonAnswer(int, java.lang.Object)
passed to BaseSession.handleAnswer(dk.i1.diameter.Message, java.lang.Object)
handleNonAnswer
in interface Session
handleNonAnswer
in class BaseSession
command_code
- The command_code from the original request.state
- The state object specified in sendRequest()public void handleAAA(Message msg)
protected void startAuth()
BaseSession
startAuth
in class BaseSession
protected void startReauth()
BaseSession
startReauth
in class BaseSession
protected void collectAARInfo(Message request)
BaseSession.addCommonStuff(dk.i1.diameter.Message)
and adds the auth-application-id.
A subclass probably want to call this method first and then add the session-specific AVPs, eg:
void collectAARInfo(Message request) { //method in your session class AASession.collectAARInfo(request); request.add(new AVP_UTF8String(ProtocolConstants.DI_CALLING_STATION_ID,msisdn)); ... }
protected boolean processAAAInfo(Message answer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |