edu.wisc.my.webproxy.beans.http
Class ShibbolethEnabledHttpManagerImpl

java.lang.Object
  extended by edu.wisc.my.webproxy.beans.http.HttpManager
      extended by edu.wisc.my.webproxy.beans.http.HttpManagerImpl
          extended by edu.wisc.my.webproxy.beans.http.ShibbolethEnabledHttpManagerImpl
All Implemented Interfaces:
ProxyComponent

public class ShibbolethEnabledHttpManagerImpl
extends HttpManagerImpl

ShibbolethEnabledHttpManagerImpl subclasses HttpManagerImpl to configurably provide a Shibboleth-authenticating HttpClient instance.

Author:
Jen Bourey, jbourey@unicon.net

Field Summary
 
Fields inherited from class edu.wisc.my.webproxy.beans.http.HttpManagerImpl
logger
 
Constructor Summary
ShibbolethEnabledHttpManagerImpl()
           
 
Method Summary
protected  org.apache.http.impl.client.DefaultHttpClient createHttpClient(javax.portlet.PortletRequest request)
          Create a new HttpClient which may potentially be pre-configured for Shibboleth authentication.
protected  String getAssertion(javax.portlet.PortletRequest request)
          Get the SAML assertion from the UserInfo map.
protected  String getIdPPublicKeys(javax.portlet.PortletRequest request)
          Get the IdP Public keys from the UserInfo map.
 String getPortalEntityID()
           
 boolean isSkipValidateIdp()
           
 void setPortalEntityID(String portalEntityID)
           
 void setSkipValidateIdp(boolean skipValidateIdp)
          Set if the IDP host name validation step should be skipped during authentication.
 void setSpCertificate(String spCertificate)
           
 void setSpPrivateKey(String spPrivateKey)
           
 
Methods inherited from class edu.wisc.my.webproxy.beans.http.HttpManagerImpl
addCookie, addCookies, clearCookies, clearData, createClientConnectionManager, createRequest, doRequest, getCookies, getCredentials, getHttpClient, getName, setCredentials, setup
 
Methods inherited from class edu.wisc.my.webproxy.beans.http.HttpManager
getCookieLock, setActionData, setRenderData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShibbolethEnabledHttpManagerImpl

public ShibbolethEnabledHttpManagerImpl()
Method Detail

getPortalEntityID

public String getPortalEntityID()
Returns:
the portalEntityID

setPortalEntityID

public void setPortalEntityID(String portalEntityID)
Parameters:
portalEntityID - the portalEntityID to set

setSpPrivateKey

public void setSpPrivateKey(String spPrivateKey)

setSpCertificate

public void setSpCertificate(String spCertificate)

isSkipValidateIdp

public boolean isSkipValidateIdp()

setSkipValidateIdp

public void setSkipValidateIdp(boolean skipValidateIdp)
Set if the IDP host name validation step should be skipped during authentication. This is generally needed when using a WAYF since the target site will reference the WAYF and not the IDP in the response.

See Also:
SAMLSession.setSkipValidateIdp(boolean)

createHttpClient

protected org.apache.http.impl.client.DefaultHttpClient createHttpClient(javax.portlet.PortletRequest request)
Create a new HttpClient which may potentially be pre-configured for Shibboleth authentication. If the current portlet instance is configured to perform Shibboleth-based authentication, this implementation should construct a new SAMLSession and return the associated DefaultHttpClient instance. If the portlet is not using Shibboleth for authentication, or does not have authentication enabled, this method will delegate to the default parent impelmentation.

Overrides:
createHttpClient in class HttpManagerImpl
Parameters:
request - portlet request
Returns:
new DefaultHttpClient instance

getAssertion

protected String getAssertion(javax.portlet.PortletRequest request)
Get the SAML assertion from the UserInfo map.

Parameters:
request -
Returns:

getIdPPublicKeys

protected String getIdPPublicKeys(javax.portlet.PortletRequest request)
Get the IdP Public keys from the UserInfo map.

Parameters:
request -
Returns:


Copyright © 2010 Jasig. All Rights Reserved.