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
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShibbolethEnabledHttpManagerImpl
public ShibbolethEnabledHttpManagerImpl()
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.