com.sun.identity.authentication.spi
Interface AMPostAuthProcessInterface


public interface AMPostAuthProcessInterface

The AMPostAuthProcessInterface interface needs to be implemented by services and applications to do post authentication processing.

This interface is invoked by Access Manager Authentication service on a successful authentication , failed authentication or during logout.

This interface has three methods onLoginSuccess, onLoginFailure and onLogout. The onLoginSucess will be invoked when authentication is successful. The onFailure will be invoked on failed authentication. The onLogout is invoked during a logout.

The post processing class implementation can be configured per ORGANIZATION or SERVICE or ROLE


Method Summary
 void onLoginFailure(java.util.Map requestParamsMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Post processing on failed authentication.
 void onLoginSuccess(java.util.Map requestParamsMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SSOToken ssoToken)
          Post processing on successful authentication.
 void onLogout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SSOToken ssoToken)
          Post processing on Logout.
 

Method Detail

onLoginSuccess

public void onLoginSuccess(java.util.Map requestParamsMap,
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response,
                           SSOToken ssoToken)
                    throws AuthenticationException
Post processing on successful authentication.

Parameters:
requestParamsMap - map containing HttpServletRequest parameters
request - HttpServletRequest object.
response - HttpServletResponse object.
ssoToken - authenticated user's single sign token.
Throws:
AuthenticationException - if there is an error.

onLoginFailure

public void onLoginFailure(java.util.Map requestParamsMap,
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws AuthenticationException
Post processing on failed authentication.

Parameters:
requestParamsMap - map containing HttpServletRequest parameters.
request - HttpServletRequest object.
response - HttpServletResponse object.
Throws:
AuthenticationException - when there is an error.

onLogout

public void onLogout(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     SSOToken ssoToken)
              throws AuthenticationException
Post processing on Logout.

Parameters:
request - HttpServletRequest object.
response - HttpServletResponse object.
ssoToken - authenticated user's single sign on token.
Throws:
AuthenticationException


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.