org.jdiameter.api.auth
Interface ServerAuthSessionListener


public interface ServerAuthSessionListener

This interface defines the possible actions that the different states in the Authentication state machine

Version:
1.5.1 Final

Method Summary
 void doAbortSessionAnswerEvent(ServerAuthSession session, AbortSessionAnswer answer)
          Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived AbortSessionRequest message.
 void doAuthRequestEvent(ServerAuthSession session, AppRequestEvent request)
          Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived AuthRequest message.
 void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer)
          Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived not authentication message.
 void doReAuthAnswerEvent(ServerAuthSession session, ReAuthRequest request, ReAuthAnswer answer)
          Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived ReAuthAnswer message.
 void doSessionTerminationRequestEvent(ServerAuthSession session, SessionTermRequest request)
          Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived SessionTerminationRequest message.
 

Method Detail

doAuthRequestEvent

void doAuthRequestEvent(ServerAuthSession session,
                        AppRequestEvent request)
                        throws InternalException,
                               IllegalDiameterStateException,
                               RouteException,
                               OverloadException
Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived AuthRequest message.

Parameters:
session - parent application session (FSM)
request - authentication request object
Throws:
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.

doReAuthAnswerEvent

void doReAuthAnswerEvent(ServerAuthSession session,
                         ReAuthRequest request,
                         ReAuthAnswer answer)
                         throws InternalException,
                                IllegalDiameterStateException,
                                RouteException,
                                OverloadException
Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived ReAuthAnswer message.

Parameters:
session - parent application session (FSM)
request - re-authentication request object
answer - re-authentication answer object
Throws:
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.

doAbortSessionAnswerEvent

void doAbortSessionAnswerEvent(ServerAuthSession session,
                               AbortSessionAnswer answer)
                               throws InternalException,
                                      IllegalDiameterStateException,
                                      RouteException,
                                      OverloadException
Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived AbortSessionRequest message.

Parameters:
session - parent application session (FSM)
answer - abort session event event instance
Throws:
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.

doSessionTerminationRequestEvent

void doSessionTerminationRequestEvent(ServerAuthSession session,
                                      SessionTermRequest request)
                                      throws InternalException,
                                             IllegalDiameterStateException,
                                             RouteException,
                                             OverloadException
Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived SessionTerminationRequest message.

Parameters:
session - parent application session (FSM)
request - session termination request event instance
Throws:
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.

doOtherEvent

void doOtherEvent(AppSession session,
                  AppRequestEvent request,
                  AppAnswerEvent answer)
                  throws InternalException,
                         IllegalDiameterStateException,
                         RouteException,
                         OverloadException
Notifies this AuthSessionEventListener that the ServerAuthSesssion has recived not authentication message.

Parameters:
session - parent application session (FSM)
request - request object
answer - answer object
Throws:
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.


Copyright © 2009. All Rights Reserved.