/**
* 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: FSSSOBrowserPostProfileHandler.java,v 1.3 2008/12/19 06:50:46 exu Exp $
*
*/
/**
* <code>IDP</code> single sign on service handler handles browser post
* profile.
*/
protected FSSSOBrowserPostProfileHandler () {
}
/**
* 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
*/
{
+ "Handler created to handle AuthnRequest");
}
}
"FSSSOBrowserPostProfileHandler.sendAuthnResponse: Called");
try {
//sign assertions
if (FSServiceUtils.isSigningOn() ||
{
+ "sendAuthnResponse: start signing assertions");
}
"FSSSOBrowserPostProfileHandler."
+ "sendAuthnResponse: id attr is" + id);
}
"SOAPReceiver.onMessage: "
+ "couldn't obtain this site's cert alias.");
return;
}
"FSSSOBrowserPostProfileHandler."
+ "sendAuthnResponse: Site's certAlias is "
+ certAlias);
}
if (minorVersion ==
{
id,
false);
} else if (minorVersion ==
minorVersion ==
{
false);
} else {
}
"FSSSOBrowserPostProfileHandler."
+ "sendAuthnResponse: SignatureManager "
+ "finished signing ");
}
}
}
}
+ "sendAuthnResponse: Signed AuthnResponse: " + respStr);
}
} else {
}
targetURL + "\">");
b64Resp + "\"/>");
"AuthnResponse: AuthnResponse sent successfully to: " +
}
return;
"Response:", ex);
return;
}
}
protected boolean doSingleSignOn(
{
"FSSSOBrowserPostProfileHandler.doSingleSignOn: Called");
try {
"FSSSOBrowserPostProfileHandler.doSingleSignOn: "
}
} catch(FSException ex){
"FSSSOBrowserPostProfileHandler.doSingleSignOn: "
+ "Created AuthnResponse is not valid: ", ex);
return false;
}
if (authnResponse == null){
"FSSSOBrowserPostProfileHandler.doSingleSignOn: "
+ "No valid AuthnResponse could be created. "
+ "Sending error AuthnResponse");
return false;
}
return true;
}
}