at.gv.egiz.moodle.eidconnector.webapp.struts.action
Class MoodleEIDConnectorAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.BaseAction
          extended by org.apache.struts.actions.DispatchAction
              extended by at.gv.egiz.moodle.eidconnector.webapp.struts.action.CommonAction
                  extended by at.gv.egiz.moodle.eidconnector.webapp.struts.action.MoodleEIDConnectorAction

public class MoodleEIDConnectorAction
extends CommonAction

Author:
AT-TUG (Thomas Knall)

Field Summary
static int INSUFFICIENT_ATTRIBUTES_RETURN_CODE
           
static int INVALID_TICKET_RETURN_CODE
           
static int NO_TICKET_RETURN_CODE
           
static String ORIGINATING_COUNTRY_PARAM
           
static String RETURNING_CREDENTIALS_CONTENT
           
static String RETURNING_CREDENTIALS_CONTENT_CHAR_ENC
           
static String RETURNING_CREDENTIALS_CONTENT_TYPE
           
static int RETURNING_CREDENTIALS_RETURN_CODE
           
protected static String SUBJECT_ATTRIBUTE_KEY_MOODLE_USER_ID
           
static String TICKET_PARAM
           
static int UNABLE_TO_FIND_USER_RETURN_CODE
           
static int UNPARSEABLE_USER_ID_RETURN_CODE
           
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, methods, types
 
Fields inherited from class org.apache.struts.actions.BaseAction
messages
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
MoodleEIDConnectorAction()
           
 
Method Summary
 ActionForward authenticate(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
          Action that has to be invoked by the underlying authentication framework.
 ActionForward getAuthenticationData(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 ActionForward leaveConnector(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 ActionForward startAuthentication(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class at.gv.egiz.moodle.eidconnector.webapp.struts.action.CommonAction
cancelled, execute, prepareMessagePage, testException
 
Methods inherited from class org.apache.struts.actions.DispatchAction
dispatchMethod, getMethod, getMethodName, getParameter, unspecified
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORIGINATING_COUNTRY_PARAM

public static final String ORIGINATING_COUNTRY_PARAM
See Also:
Constant Field Values

TICKET_PARAM

public static final String TICKET_PARAM
See Also:
Constant Field Values

INVALID_TICKET_RETURN_CODE

public static final int INVALID_TICKET_RETURN_CODE
See Also:
Constant Field Values

NO_TICKET_RETURN_CODE

public static final int NO_TICKET_RETURN_CODE
See Also:
Constant Field Values

INSUFFICIENT_ATTRIBUTES_RETURN_CODE

public static final int INSUFFICIENT_ATTRIBUTES_RETURN_CODE
See Also:
Constant Field Values

UNABLE_TO_FIND_USER_RETURN_CODE

public static final int UNABLE_TO_FIND_USER_RETURN_CODE
See Also:
Constant Field Values

UNPARSEABLE_USER_ID_RETURN_CODE

public static final int UNPARSEABLE_USER_ID_RETURN_CODE
See Also:
Constant Field Values

RETURNING_CREDENTIALS_RETURN_CODE

public static final int RETURNING_CREDENTIALS_RETURN_CODE
See Also:
Constant Field Values

RETURNING_CREDENTIALS_CONTENT_TYPE

public static final String RETURNING_CREDENTIALS_CONTENT_TYPE
See Also:
Constant Field Values

RETURNING_CREDENTIALS_CONTENT_CHAR_ENC

public static final String RETURNING_CREDENTIALS_CONTENT_CHAR_ENC
See Also:
Constant Field Values

RETURNING_CREDENTIALS_CONTENT

public static final String RETURNING_CREDENTIALS_CONTENT
See Also:
Constant Field Values

SUBJECT_ATTRIBUTE_KEY_MOODLE_USER_ID

protected static final String SUBJECT_ATTRIBUTE_KEY_MOODLE_USER_ID
See Also:
Constant Field Values
Constructor Detail

MoodleEIDConnectorAction

public MoodleEIDConnectorAction()
Method Detail

startAuthentication

public ActionForward startAuthentication(ActionMapping mapping,
                                         ActionForm form,
                                         HttpServletRequest request,
                                         HttpServletResponse response)
                                  throws NoSuchAlgorithmException,
                                         IOException
Throws:
NoSuchAlgorithmException
IOException

authenticate

public ActionForward authenticate(ActionMapping mapping,
                                  ActionForm form,
                                  HttpServletRequest request,
                                  HttpServletResponse response)
                           throws NoSuchAlgorithmException,
                                  IOException
Action that has to be invoked by the underlying authentication framework. This action performs delegation to the set of registered eID authenticators.

Throws:
NoSuchAlgorithmException
IOException

getAuthenticationData

public ActionForward getAuthenticationData(ActionMapping mapping,
                                           ActionForm form,
                                           HttpServletRequest request,
                                           HttpServletResponse response)
                                    throws IOException,
                                           NoSuchAlgorithmException
Throws:
IOException
NoSuchAlgorithmException

leaveConnector

public ActionForward leaveConnector(ActionMapping mapping,
                                    ActionForm form,
                                    HttpServletRequest request,
                                    HttpServletResponse response)
                             throws IOException
Throws:
IOException


Copyright 2009 EGIZ. All Rights Reserved.