edu.wisc.my.webproxy.beans.http
Class ShibbolethEnabledHttpManagerImpl
java.lang.Object
edu.wisc.my.webproxy.beans.http.HttpManager
edu.wisc.my.webproxy.beans.http.HttpManagerImpl
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
|
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 java.lang.String |
getAssertion(javax.portlet.PortletRequest request)
Get the SAML assertion from the UserInfo map. |
protected java.lang.String |
getIdPPublicKeys(javax.portlet.PortletRequest request)
Get the IdP Public keys from the UserInfo map. |
java.lang.String |
getPortalEntityID()
|
void |
setPortalEntityID(java.lang.String portalEntityID)
|
void |
setSpCertificate(java.lang.String spCertificate)
|
void |
setSpPrivateKey(java.lang.String spPrivateKey)
|
| Methods inherited from class edu.wisc.my.webproxy.beans.http.HttpManagerImpl |
addCookie, addCookies, clearCookies, clearData, createRequest, doRequest, getCookies, getCredentials, getHttpClient, getName, setCredentials, setup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShibbolethEnabledHttpManagerImpl
public ShibbolethEnabledHttpManagerImpl()
getPortalEntityID
public java.lang.String getPortalEntityID()
- Returns:
- the portalEntityID
setPortalEntityID
public void setPortalEntityID(java.lang.String portalEntityID)
- Parameters:
portalEntityID - the portalEntityID to set
setSpPrivateKey
public void setSpPrivateKey(java.lang.String spPrivateKey)
setSpCertificate
public void setSpCertificate(java.lang.String spCertificate)
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 java.lang.String getAssertion(javax.portlet.PortletRequest request)
- Get the SAML assertion from the UserInfo map.
- Parameters:
request -
- Returns:
getIdPPublicKeys
protected java.lang.String getIdPPublicKeys(javax.portlet.PortletRequest request)
- Get the IdP Public keys from the UserInfo map.
- Parameters:
request -
- Returns:
Copyright © 2010 Jasig. All Rights Reserved.