/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 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: RPSigninResponse.java,v 1.8 2009/12/14 23:42:48 mallas Exp $
*
*/
/**
* This class handles the sign-in response from the identity provider
*/
/** Creates a new instance of RPSigninResponse
* @param request HTTP Servlet request
* @param response HTTP Servlet response
* @param wresult wresult parameter from request
* @param wctx wctx parameter from request
*/
}
/**
* Processes the sign-in response, redirecting the browser wreply URL
* supplied in the sign-in request via the HttpServletResponse passed to
* the constructor.
*/
data,
null);
getString("nullWresult"));
}
try {
} catch (WSFederationException wsfe) {
data,
null);
getString("invalidWresult"));
}
if ( debug.messageEnabled() ) {
}
// get entity id and orgName
try {
} catch (WSFederationException wsfe) {
data,
null);
"invalidMetaAlias", args);
}
realm = "/";
}
if (timeskew < 0) {
}
}
if (debug.messageEnabled()) {
}
// check Assertion and get back a Map of relevant data including,
// Subject, SOAPEntry for the partner and the List of Assertions.
if ( debug.messageEnabled() ) {
}
// verifyToken will throw an exception, rather than return null, so we
// need not test the return value
timeskew);
getString("nullUserID"));
}
}
// Set up Attributes for session creation
try {
session);
}
} catch (SessionException se) {
data,
null);
throw new WSFederationException(se);
}
} else {
}
target};
{
// What to do? There was no wreply URL specified, and there is no
// default target configured
return;
}
}
if (acctMapperList != null) {
try {
newInstance());
if (debug.messageEnabled()) {
"RPSigninResponse.getSPAccountMapper: mapper = " +
}
} catch (ClassNotFoundException cfe) {
throw new WSFederationException(cfe);
} catch (InstantiationException ie) {
throw new WSFederationException(ie);
} catch (IllegalAccessException iae) {
throw new WSFederationException(iae);
}
}
if (acctMapper == null) {
throw new WSFederationException(
}
return acctMapper;
}
throws WSFederationException {
if (attrMapperList != null) {
try {
newInstance());
} catch (ClassNotFoundException cfe) {
throw new WSFederationException(cfe);
} catch (InstantiationException ie) {
throw new WSFederationException(ie);
} catch (IllegalAccessException iae) {
throw new WSFederationException(iae);
}
}
if (attrMapper == null) {
throw new WSFederationException(
}
return attrMapper;
}
/** Sets the attribute map in the session
*
* @param sessionProvider Session provider
* @param attrMap the Attribute Map
* @param session the valid session object
* @throws com.sun.identity.plugin.session.SessionException
*/
public static void setAttrMapInSession(
throws SessionException {
"SPACSUtils.setAttrMapInSession: AttrMap:" +
}
}
}
}
}
// return true.
return true;
}
}
}