org.apache.jetspeed.portlet.sso
Class SSOProxyPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by org.apache.portals.bridges.common.GenericServletPortlet
          extended by org.apache.portals.bridges.velocity.GenericVelocityPortlet
              extended by org.apache.jetspeed.portlet.sso.SSOProxyPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig

public class SSOProxyPortlet
extends org.apache.portals.bridges.velocity.GenericVelocityPortlet

SSOProxyPortlet This portlet can be used as a bridge to any URL. It acts as a http client and therefore it can store cookies. The main purpose is that the SSOProxy portlet authenticates any SSO credential for the principal user not knowing in advance what URL the user might select. No login prompt will appear for any url in the portlet for that an SSO entry exists and the principal user has permissions.

Author:
Roger Ruttimann

Field Summary
(package private) static String ACTION_PARAMETER_SSOPROXY
          ACTION_PARAMETER_SSOPROXY
(package private) static int BLOCK_SIZE
          Block Size
private  javax.portlet.PortletContext context
           
 String defaultEncoding
          Default encoding UTF-8
(package private) static String DESTINATION_URL
          DestinationURL
private  String destinationURL
           
private  String encoding
           
(package private) static String ENCODING
          Encoding
(package private) static String FORCE_SSO_REFRESH
          ForceSSORefresh
private  boolean isAuthenticated
           
private  org.apache.jetspeed.sso.SSOProvider sso
           
(package private) static String SSO_SITE
          SSOSite
private  String ssoSite
           
 
Fields inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet
PORTLET_BRIDGE_CONTEXT
 
Fields inherited from class org.apache.portals.bridges.common.GenericServletPortlet
PARAM_ACTION_PAGE, PARAM_ALLOW_PREFERENCES, PARAM_CUSTOM_PAGE, PARAM_EDIT_PAGE, PARAM_HELP_PAGE, PARAM_MAX_PAGE, PARAM_VIEW_PAGE
 
Constructor Summary
SSOProxyPortlet()
           
 
Method Summary
 void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
private  Subject getSubject()
           
 void init(javax.portlet.PortletConfig config)
           
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse actionResponse)
           
 
Methods inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet
doCustom, doHelp, doPreferencesEdit, getContext, getContext, render, setupPreferencesEdit
 
Methods inherited from class org.apache.portals.bridges.common.GenericServletPortlet
getDefaultActionPage, getDefaultCustomPage, getDefaultEditPage, getDefaultHelpPage, getDefaultViewPage, processPreferencesAction, setDefaultActionPage, setDefaultCustomPage, setDefaultEditPage, setDefaultHelpPage, setDefaultViewPage
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private javax.portlet.PortletContext context

sso

private org.apache.jetspeed.sso.SSOProvider sso

isAuthenticated

private boolean isAuthenticated

defaultEncoding

public String defaultEncoding
Default encoding UTF-8


BLOCK_SIZE

static final int BLOCK_SIZE
Block Size

See Also:
Constant Field Values

ACTION_PARAMETER_SSOPROXY

static final String ACTION_PARAMETER_SSOPROXY
ACTION_PARAMETER_SSOPROXY

See Also:
Constant Field Values

DESTINATION_URL

static final String DESTINATION_URL
DestinationURL

See Also:
Constant Field Values

SSO_SITE

static final String SSO_SITE
SSOSite

See Also:
Constant Field Values

FORCE_SSO_REFRESH

static final String FORCE_SSO_REFRESH
ForceSSORefresh

See Also:
Constant Field Values

ENCODING

static final String ENCODING
Encoding

See Also:
Constant Field Values

destinationURL

private String destinationURL

ssoSite

private String ssoSite

encoding

private String encoding
Constructor Detail

SSOProxyPortlet

public SSOProxyPortlet()
Method Detail

init

public void init(javax.portlet.PortletConfig config)
          throws javax.portlet.PortletException
Specified by:
init in interface javax.portlet.Portlet
Overrides:
init in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse actionResponse)
                   throws javax.portlet.PortletException,
                          IOException
Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
IOException

doView

public void doView(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Overrides:
doView in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
IOException

doEdit

public void doEdit(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Overrides:
doEdit in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
IOException

getSubject

private Subject getSubject()


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.