/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: FSProxyHandler.java,v 1.3 2008/06/25 05:46:58 qcheng Exp $
*
*/
/**
* This class <code>FSProxyHandler</code> handles the single sign-on requests
* by a proxy identity provider. This class will be invoked by an identity
* provider that is also acting as a proxy and needs to handle
* browser artifact and post profiles.
*/
/**
* Constructor.
* This constructor is primarily used by the proxying identity provider
* which acts as a service provider for handling single sign-on requests.
* @param request <code>HttpServletRequest</code> object
* @param response <code>HttpServletResponse</code> object
* @param authnRequest original authentication request that is issued
* by the service provider.
* @param spDescriptor requesting service provider descriptor.
* @param spConfig requesting service provider's extended meta Config
* @param spEntityId requesting service provider's entity id
* @param relayState targetURL to be redirected.
* @param ssoToken credentials of a user at a proxy identity provider.
*/
public FSProxyHandler(
)
{
}
/**
* Constructor.
* This constructor is primarily used by the identity provider to
* send a proxy authentication request.
* @param request <code>HttpServletRequest</code> object
* @param response <code>HttpServletResponse</code> object
*/
public FSProxyHandler(
{
}
/**
* Does the single sign-on in a proxy IDP with the
* requesting service provider.
* @param ssoToken credentials of the user
* @param inResponseTo <code>InResponseTo</code> attribute of the request.
* @param spNameIdentifier <code>SP</code> Provided NameIdentifier.
* @param idpNameIdentifier <code>IDP</code> Provided NameIdentifier.
* @return boolean <code>true</code> if successful.
*/
public boolean doSingleSignOn(
{
if (protocolProfile == null ||
{
return handler.doSingleSignOn(
return handler.doSingleSignOn(
} else {
"Unsupported protocol profile.");
return false;
}
}
}