ScopingImpl.java revision f19daa6ba0b9b98b028c578125eaa298e5df4aa1
/**
* 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: ScopingImpl.java,v 1.5 2009/03/12 20:32:41 huacui Exp $
*
* Portions Copyrighted 2014 ForgeRock AS.
*/
/**
* This class defines methods to retrieve Identity Providers and context/limitations related to proxying of the request
* message.
*/
public class ScopingImpl implements Scoping {
private boolean isMutable = false;
private Integer proxyCount;
/**
* Constructor to create Scoping object.
*/
public ScopingImpl() {
isMutable=true;
}
/**
* Constructor to create the <code>Scoping</code> Object.
*
* @param element Document Element of <code>Scoping</code> Object.
* @throws SAML2Exception if <code>Scoping<code> cannot be created.
*/
}
/**
* Constructor to create the <code>Scoping</code> Object.
*
* @param xmlString XML String Representation of <code>Scoping</code>
* Object.
* @throws SAML2Exception if <code>Scoping<code> cannot be created.
*/
if (xmlDocument == null) {
}
}
/**
* Returns the <code>IDPList</code> Object.
*
* @return the <code>IDPList</code> object.
* @see #setIDPList(IDPList)
*/
public IDPList getIDPList() {
return idpList;
}
/**
* Sets the <code>IDPList</code> Object.
*
* @param idpList the new <code>IDPList</code> object.
* @throws SAML2Exception if the object is immutable.
* @see #getIDPList
*/
if (isMutable) {
} else {
}
}
/**
* Returns a list of <code>RequesterID</code> Objects.
*
* @return list of <code>RequesterID</code> objects.
* @see #setRequesterIDs(List)
*/
return requesterIDList;
}
/**
* Sets the <code>RequesterID</code> Object.
*
* @param value list of <code>RequesterID</code> objects.
* @throws SAML2Exception if the object is immutable.
* @see #getRequesterIDs
*/
if (isMutable) {
} else {
}
}
/**
* Returns the value of <code>ProxyCount</code> attribute.
*
* @return the value of <code>ProxyCount</code> attribute value.
*/
public Integer getProxyCount() {
return proxyCount;
}
/**
* Sets the value of <code>ProxyCount</code> attribute.
*
* @param proxyCount new value of <code>ProxyCount</code> attribute.
* @throws SAML2Exception if the object is immutable.
*/
if (isMutable) {
this.proxyCount = proxyCount;
} else {
}
}
/**
* Returns a String representation of this Object.
*
* @return a String representation of this Object.
* @throws SAML2Exception if cannot create String object
*/
return toXMLString(true,false);
}
/**
* Returns a String representation
*
* @param includeNSPrefix 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 the String representation of this Object.
* @throws SAML2Exception if String object cannot be created.
*/
throws SAML2Exception {
if (idpList != null || (requesterIDList != null && !requesterIDList.isEmpty()) || proxyCount != null) {
if (includeNSPrefix) {
}
if (declareNS) {
}
if (proxyCount != null) {
}
}
if (requesterIDList != null) {
}
}
}
return xmlElementString;
}
/**
* Makes this object immutable.
*/
public void makeImmutable() {
if (isMutable) {
}
if (requesterIDList != null) {
}
}
isMutable = false;
}
}
/**
* Returns true if object is mutable.
*
* @return true if object is mutable.
*/
public boolean isMutable(){
return isMutable;
}
}
if (requesterIDList == null) {
}
}
}
}
}
}
}
/* validate the sequence of IDPList element */
private void validateIDPList() throws SAML2Exception {
}
}
}
/* validate the proxy count */
if (proxyCount != null
}
}
}
}