/**
* 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: FSScoping.java,v 1.2 2008/06/25 05:46:45 qcheng Exp $
* Portions Copyrighted 2014 ForgeRock AS
*/
/**
* This class <code>FSScoping</code> creates scoping element for the
* authentication request.
*
* @supported.all.api
* @deprecated since 12.0.0
*/
public class FSScoping {
/**
* Default constructor
*/
public FSScoping() {}
/**
* Constructor creates <code>FSScoping</code> object.
*
* @param idpList the <code>FSIDPList</code> object.
* @param proxyCount the number of proxies
*/
this.proxyCount = proxyCount;
}
/**
* Constructor creates <code>FSScoping</code> object from
* the Document Element.
*
* @param root the Document Element .
* @throws FSMsgException if there is a failure creating this object.
*/
}
}
for (int i=0; i < length; i++) {
continue;
}
try {
} catch (NumberFormatException ne) {
"Count", ne);
}
}
}
}
/**
* Sets the proxy count.
*
* @param count number of proxies
*/
proxyCount = count;
}
/**
* Returns the proxy count.
*
* @return number of proxies.
*/
public int getProxyCount() {
return proxyCount;
}
/**
* Sets preferred ordered List of IDPs that is known to SP for proxying.
*
* @param idpList the <code>FSIDPList</code> object.
*/
}
/**
* Returns the preferred IDPs list in an authentication request.
*
* @return the <code>FSIDPList</code> object.
*/
return idpList;
}
/**
* Returns a <code>XML</code> string representation of this object.
*
* @return XML String representing this object.
* @throws FSMsgException if there is an error creating
* the XML string or if the required elements to create
* the string do not conform to the schema.
*/
return toXMLString(true, true);
}
/**
* Creates a String representation of this object.
*
* @param includeNS : Determines whether or not the namespace qualifier
* is prepended to the Element when converted
* @param declareNS : Determines whether or not the namespace is declared
* within the Element.
* @return string containing the valid XML for this element.
* @throws FSMsgException if there is an error.
*/
throws FSMsgException {
if(includeNS) {
}
if(declareNS) {
}
if(proxyCount >= 0) {
}
}
}
/**
* Returns an URL Encoded String.
*
* @return a url encoded query string.
* @throws FSMsgException if there is an error.
*/
if(proxyCount == -1) {
"proxyCount is not defined.");
}
space = " ";
}
}
}
}
}
/**
* Returns <code>FSScoping</code> object. The
* object is creating by parsing the <code>HttpServletRequest</code>
* object.
*
* @param request the <code>HttpServletRequest</code> object.
* @throws FSMsgException if there is an error creating this object.
*/
return null;
}
return null;
}
int proxyCount = -1;
try {
} catch (NumberFormatException ne) {
"proxyCount can not be parsed.");
return null;
}
return scoping;
}
}
return scoping;
}
}