org.apache.jetspeed.portlet
Class SSOWebContentPortlet

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.WebContentPortlet
                  extended by org.apache.jetspeed.portlet.SSOWebContentPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig
Direct Known Subclasses:
SSOTicketPortlet

public class SSOWebContentPortlet
extends WebContentPortlet

SSOWebContentPortlet

Version:
$Id: SSOWebContentPortlet.java 605431 2007-12-19 05:11:40Z taylor $
Author:
David Sean Taylor

Field Summary
static String BASIC_AUTH_SCHEME_NAME
           
protected  javax.portlet.PortletContext context
           
static String FORM_AUTH_STATE
           
protected static org.apache.commons.logging.Log log
           
protected  org.apache.jetspeed.sso.SSOProvider sso
           
static String SSO_EDIT_FIELD_CREDENTIAL
           
static String SSO_EDIT_FIELD_PRINCIPAL
           
static String SSO_REQUEST_ATTRIBUTE_PASSWORD
           
static String SSO_REQUEST_ATTRIBUTE_USERNAME
           
static String SSO_TYPE
           
static String SSO_TYPE_BASIC
           
static String SSO_TYPE_BASIC_PREEMPTIVE
           
static String SSO_TYPE_CERTIFICATE
           
static String SSO_TYPE_DEFAULT
           
static String SSO_TYPE_FORM
           
static String SSO_TYPE_FORM_ACTION_ARGS
           
static String SSO_TYPE_FORM_ACTION_URL
           
static String SSO_TYPE_FORM_GET
           
static String SSO_TYPE_FORM_PASSWORD_FIELD
           
static String SSO_TYPE_FORM_POST
           
static String SSO_TYPE_FORM_USERNAME_FIELD
           
static String SSO_TYPE_HTTP
           
static String SSO_TYPE_URL
           
static String SSO_TYPE_URL_BASE64
           
static String SSO_TYPE_URL_PASSWORD_PARAM
           
static String SSO_TYPE_URL_USERNAME_PARAM
           
 
Fields inherited from class org.apache.jetspeed.portlet.WebContentPortlet
BLOCK_SIZE, BROWSER_ACTION_NEXT_PAGE, BROWSER_ACTION_PARAM, BROWSER_ACTION_PREVIOUS_PAGE, BROWSER_ACTION_REFRESH_PAGE, defaultEncoding, EDIT_SOURCE_PARAM, FORM_GET_METHOD, FORM_MULTIPART_METHOD, FORM_POST_METHOD, HISTORY, HTTP_STATE, VIEW_SOURCE_PARAM
 
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
SSOWebContentPortlet()
           
 
Method Summary
 void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  byte[] doPreemptiveAuthentication(org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethod method, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  boolean doRequestedAuthentication(org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethod method, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          doView Renders the URL in the following order 1) SESSION_PARAMETER 2)cached version 3) defined for preference SRC
protected  String getSingleSignOnAuthType(javax.portlet.PortletPreferences prefs)
           
private  Subject getSubject()
           
 void init(javax.portlet.PortletConfig config)
          Initialize portlet configuration.
 void processAction(javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse)
          processAction() Checks action initiated by the WebContent portlet which means that a user has clicked on an URL
 
Methods inherited from class org.apache.jetspeed.portlet.WebContentPortlet
doHttpWebContent, doWebContent, getHttpClient, getHttpMethod, getURLSource
 
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

SSO_TYPE

public static final String SSO_TYPE
See Also:
Constant Field Values

SSO_TYPE_HTTP

public static final String SSO_TYPE_HTTP
See Also:
Constant Field Values

SSO_TYPE_BASIC

public static final String SSO_TYPE_BASIC
See Also:
Constant Field Values

SSO_TYPE_BASIC_PREEMPTIVE

public static final String SSO_TYPE_BASIC_PREEMPTIVE
See Also:
Constant Field Values

SSO_TYPE_FORM

public static final String SSO_TYPE_FORM
See Also:
Constant Field Values

SSO_TYPE_FORM_GET

public static final String SSO_TYPE_FORM_GET
See Also:
Constant Field Values

SSO_TYPE_FORM_POST

public static final String SSO_TYPE_FORM_POST
See Also:
Constant Field Values

SSO_TYPE_URL

public static final String SSO_TYPE_URL
See Also:
Constant Field Values

SSO_TYPE_URL_BASE64

public static final String SSO_TYPE_URL_BASE64
See Also:
Constant Field Values

SSO_TYPE_CERTIFICATE

public static final String SSO_TYPE_CERTIFICATE
See Also:
Constant Field Values

SSO_TYPE_DEFAULT

public static final String SSO_TYPE_DEFAULT
See Also:
Constant Field Values

BASIC_AUTH_SCHEME_NAME

public static final String BASIC_AUTH_SCHEME_NAME

SSO_TYPE_URL_USERNAME_PARAM

public static final String SSO_TYPE_URL_USERNAME_PARAM
See Also:
Constant Field Values

SSO_TYPE_URL_PASSWORD_PARAM

public static final String SSO_TYPE_URL_PASSWORD_PARAM
See Also:
Constant Field Values

SSO_TYPE_FORM_ACTION_URL

public static final String SSO_TYPE_FORM_ACTION_URL
See Also:
Constant Field Values

SSO_TYPE_FORM_ACTION_ARGS

public static final String SSO_TYPE_FORM_ACTION_ARGS
See Also:
Constant Field Values

SSO_TYPE_FORM_USERNAME_FIELD

public static final String SSO_TYPE_FORM_USERNAME_FIELD
See Also:
Constant Field Values

SSO_TYPE_FORM_PASSWORD_FIELD

public static final String SSO_TYPE_FORM_PASSWORD_FIELD
See Also:
Constant Field Values

SSO_REQUEST_ATTRIBUTE_USERNAME

public static final String SSO_REQUEST_ATTRIBUTE_USERNAME
See Also:
Constant Field Values

SSO_REQUEST_ATTRIBUTE_PASSWORD

public static final String SSO_REQUEST_ATTRIBUTE_PASSWORD
See Also:
Constant Field Values

SSO_EDIT_FIELD_PRINCIPAL

public static final String SSO_EDIT_FIELD_PRINCIPAL
See Also:
Constant Field Values

SSO_EDIT_FIELD_CREDENTIAL

public static final String SSO_EDIT_FIELD_CREDENTIAL
See Also:
Constant Field Values

FORM_AUTH_STATE

public static final String FORM_AUTH_STATE
See Also:
Constant Field Values

log

protected static final org.apache.commons.logging.Log log

context

protected javax.portlet.PortletContext context

sso

protected org.apache.jetspeed.sso.SSOProvider sso
Constructor Detail

SSOWebContentPortlet

public SSOWebContentPortlet()
Method Detail

init

public void init(javax.portlet.PortletConfig config)
          throws javax.portlet.PortletException
Description copied from class: WebContentPortlet
Initialize portlet configuration.

Specified by:
init in interface javax.portlet.Portlet
Overrides:
init in class WebContentPortlet
Throws:
javax.portlet.PortletException

processAction

public void processAction(javax.portlet.ActionRequest actionRequest,
                          javax.portlet.ActionResponse actionResponse)
                   throws javax.portlet.PortletException,
                          IOException
Description copied from class: WebContentPortlet
processAction() Checks action initiated by the WebContent portlet which means that a user has clicked on an URL

Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class WebContentPortlet
Throws:
javax.portlet.PortletException
IOException

doView

public void doView(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Description copied from class: WebContentPortlet
doView Renders the URL in the following order 1) SESSION_PARAMETER 2)cached version 3) defined for preference SRC

Overrides:
doView in class WebContentPortlet
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 WebContentPortlet
Throws:
javax.portlet.PortletException
IOException

getSubject

private Subject getSubject()

doPreemptiveAuthentication

protected byte[] doPreemptiveAuthentication(org.apache.commons.httpclient.HttpClient client,
                                            org.apache.commons.httpclient.HttpMethod method,
                                            javax.portlet.RenderRequest request,
                                            javax.portlet.RenderResponse response)
Overrides:
doPreemptiveAuthentication in class WebContentPortlet

doRequestedAuthentication

protected boolean doRequestedAuthentication(org.apache.commons.httpclient.HttpClient client,
                                            org.apache.commons.httpclient.HttpMethod method,
                                            javax.portlet.RenderRequest request,
                                            javax.portlet.RenderResponse response)
Overrides:
doRequestedAuthentication in class WebContentPortlet

getSingleSignOnAuthType

protected String getSingleSignOnAuthType(javax.portlet.PortletPreferences prefs)


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