/**
* 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: FSSSOWMLPostProfileHandler.java,v 1.2 2008/06/25 05:46:59 qcheng Exp $
*
*/
/**
* <code>IDP</code> single sign on service handler that handles <code>WML</code>
* post profile.
*/
protected FSSSOWMLPostProfileHandler () {
}
/**
* 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
*/
{
}
"FSSSOWMLPostProfileHandler.sendAuthnResponse: Called");
try {
//sign assertions
if (FSServiceUtils.isSigningOn()){
+ "sendAuthnResponse: start signing assertions");
}
+ "sendAuthnResponse: id attr is" + id);
}
"SOAPReceiver.onMessage: "
+ "couldn't obtain this site's cert alias.");
return;
}
"FSSSOWMLPostProfileHandler." +
"sendAuthnResponse: Site's certAlias is " +
}
if (minorVersion ==
{
} else if (minorVersion ==
||
minorVersion ==
{
assertion.getAssertionID(), false);
} else {
}
+ "sendAuthnResponse: SignatureManager"
+ " finished signing ");
}
}
}
}
+ "sendAuthnResponse: Signed AuthnResponse: " + respStr);
}
+ "\"http://www.wapforum.org/DTD/wml_1.1.xml\">");
+ b64Resp + "\"/>");
"FSSSOWMLPostProfileHandler:sendAuthnResponse: "
+ "AuthnResponse sent successfully to: "
}
"FSSSOWMLPostProfileHandler:sendAuthnResponse: "
+ "Failed to send AuthnResponse");
}
}
{
return true;
}
}