/**
* 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: IDPEntry.java,v 1.2 2008/06/25 05:46:47 qcheng Exp $
* Portions Copyrighted 2014 ForgeRock AS
*/
/**
* information trusted by the request issuer to authenticate the presenter.
*
* @supported.all.api
* @deprecated since 12.0.0
*/
public class IDPEntry {
/**
* Default Constructor.
*/
public IDPEntry() {
}
/**
* Constructor creates <code>IDPEntry</code> object.
*
* @param providerID the Identity Provider identifier.
* @param providerName the Identity Provider name.
* @param location
*/
this.providerID = providerID;
this.providerName = providerName;
}
/**
* Returns the value of <code>ProviderID</code> attribute.
*
* @return the value of <code>ProviderID</code> attribute.
* @see #setProviderID(String)
*/
return providerID;
}
/**
* Sets the value of <code>ProviderID</code> attribute.
*
* @param providerID the value of <code>ProviderID</code> attribute.
* @see #getProviderID
*/
this.providerID = providerID;
}
/**
* Returns the Identity Provider Name.
*
* @return the Identity Provider Name.
* @see #setProviderName(String)
*/
return providerName;
}
/**
* Sets the Identity Provider Name.
*
* @param providerName the Identity Provider Name.
* @see #getProviderName
*/
this.providerName = providerName;
}
/**
* Returns the location URI of the Identity Provider.
*
* @return the location URI of the Identity Provider.
* @see #setLocation(String)
*/
return location;
}
/**
* Sets the location URI of the Identity Provider.
*
* @param location the location URI of the Identity Provider.
* @see #getLocation
*/
}
/**
* Returns the string representation of this object.
* This method translates the response to an XML document string.
*
* @return An XML String representing the response. NOTE: this is a
* complete SAML response xml string with ResponseID,
* MajorVersion, etc.
*/
return toXMLString(true, true);
}
/**
* Returns 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 a string containing the valid XML for this element
* @throws FSMsgException if there is an error converting
* this object ot a string.
*/
throws FSMsgException {
}
/**
* Returns 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.
* @param includeHeader Determines whether the output include the xml
* declaration header.
* @return a string containing the valid XML for this element
* @throws FSMsgException if there is an error converting
* this object ot a string.
*/
boolean includeHeader) throws FSMsgException {
if (includeHeader) {
}
if (includeNS) {
}
if (declareNS) {
}
append(">\n");
if(providerID != null){
.append(">\n");
}
if(providerName != null){
.append(">\n");
}
}
}
/**
* Constructor creates <code>IDPEntry</code> Object from
* Document Element.
*
* @param root Document Element of <code>IDPEntry<code> object.
* @throws FSMsgException if <code>IDPEntry<code> cannot be created.
*/
}
}
for (int i = 0; i < length; i++) {
if (providerID != null) {
+ "contain only one ProviderID");
}
}
if (providerName != null) {
+ "contain only one ProviderName");
}
}
+ "contain only one Loc");
}
}
}
}
}
}
}