/**
* 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: FSSSOLECPProfileHandler.java,v 1.3 2008/06/25 05:46:59 qcheng Exp $
*
*/
/**
* <code>IDP</code> single sign on service handler handles <code>LECP</code>
* profile.
*/
protected FSSSOLECPProfileHandler () {
}
/**
* Constructor.
* @param request <code>HttpServletRequest</code> object
* @param response <code>HttpServletResponse</code> object
* @param authnRequest authentication request
* @param spDescriptor <code>SP</code>'s provider descriptor
* @param spConfig <code>SP</code>'s extended meta config
* @param spEntityId <code>SP</code>'s entity id
* @param relayState where to go after single sign on is done
*/
{
}
/**
* Processes <code>LECP</code> authentication request.
* @param authnRequest authentication request
*/
processAuthnRequest(authnRequest, false);
return;
}
/**
* Generates local login url.
* @param loginUrl authentication base url
* @param authnContext requested <code>AuthnContextRef</code>
* @return local login url with appropriate parameters
*/
)
{
"FSSSOLECPProfileHandler.formatLoginURL: Called" +
"\nloginUrl=" + loginUrl +
"\nauthnContext=" + authnContext);
}
try {
return null;
}
//create return url
} else {
}
.append("&");
if (!authnContext.equals(
{
.append("=")
.append("&");
}
.append("=")
.append("=")
.append("=")
.append("=")
//create goto url
//create redirect url
} else {
}
}
}
return redirectUrl.toString();
} catch(Exception e){
"FSSSOLECPProfileHandler.formatLoginURL: Exception: ", e);
return null;
}
}
try {
} catch (FSMsgException ex) {
"FSSSOLECPProfileHandler.sendAuthnResponse: ", ex);
}
response);
return;
}
if (FSServiceUtils.isSigningOn()){
try {
"FSSSOLECPProfileHandler.sendAuthnResponse: "
+ "couldn't obtain this site's cert alias.");
}
response);
return;
}
if (minorVersion ==
{
id,
false);
} else if (minorVersion ==
minorVersion ==
{
false);
} else {
}
}
} catch (Exception e) {
response);
return;
}
}
}
{
return true;
}
private void returnSOAPMessage(
{
try {
return;
} else {
response.flushBuffer ();
return;
}
} catch(Exception e) {
"FSSOAPReceiver.returnSOAPMessage: Exception::", e);
return;
}
}
}