355b4669e025ff377602b6fc7caaf30dbc218371jacobs * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * The contents of this file are subject to the terms
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * of the Common Development and Distribution License
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * (the License). You may not use this file except in
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * compliance with the License.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * You can obtain a copy of the License at
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * https://opensso.dev.java.net/public/CDDLv1.0.html or
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * See the License for the specific language governing
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * permission and limitations under the License.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * When distributing Covered Code, include this CDDL
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Header Notice in each file and include the License file
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * If applicable, add the following below the CDDL Header,
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * with the fields enclosed by brackets [] replaced by
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * your own identifying information:
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * "Portions Copyrighted [year] [name of copyright owner]"
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * $Id: FSServiceUtils.java,v 1.11 2008/11/10 22:56:59 veiming Exp $
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Portions Copyrighted 2012-2016 ForgeRock AS.
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport javax.xml.transform.TransformerConfigurationException;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.common.SystemConfigurationException;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.common.SystemConfigurationUtil;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.accountmgmt.FSAccountFedInfo;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.accountmgmt.FSAccountManager;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.accountmgmt.FSAccountMgmtException;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.common.FSException;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.common.IFSConstants;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.jaxb.entityconfig.BaseConfigType;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.meta.IDFFMetaManager;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.meta.IDFFMetaUtils;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.plugins.FederationSPAdapter;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.federation.services.FSSPAuthenticationContextInfo;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.liberty.ws.meta.jaxb.AffiliationDescriptorType;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.plugin.session.SessionException;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.plugin.session.SessionManager;
355b4669e025ff377602b6fc7caaf30dbc218371jacobsimport com.sun.identity.plugin.session.SessionProvider;
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Util class to provide methods to manage ID-FF service.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs Constants.FILE_SEPARATOR + IFSConstants.FEDERATION_DIR;
signingOn = true;
signingOptional = true;
return signingOn;
return signingOptional;
return null;
}catch(Exception e){
return null;
return null;
* <code>protocol://host:port/deployment_descriptor</code>.
+ uri);
return null;
return null;
ssoe);
+ returnStr);
return returnStr;
return null;
return amserverURI;
return getBaseURL();
return returnStr;
return hostStr;
public static String printDocument (Node root) throws TransformerException, TransformerConfigurationException,
+ xml);
return doc;
} catch (Exception e) {
return null;
} catch (Exception e) {
return null;
+ lecpHeaderValue);
return null;
return map;
return map;
char delimiter;
} catch (IOException e){
throws IOException
char authDelimiter;
} catch (IOException e) {
while (e.hasMoreElements()) {
boolean isSuccess,
char delimiter;
if (isSuccess) {
} catch(IOException e) {
retURL);
exx);
return tempUrl;
return tempUrl;
return tempUrl;
return tempUrl;
return tempUrl;
return tempUrl;
return tempUrl;
return tempUrl;
return url;
return null;
return curValue;
return defaultValue;
return first;
return retVal;
return null;
return retMap;
} catch (FSAccountMgmtException e) {
return ver;
return null;
return adapterInstance;
} catch (Exception e) {
return null;