/**
* 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: FSSubject.java,v 1.2 2008/06/25 05:46:45 qcheng Exp $
* Portions Copyrighted 2014 ForgeRock AS
*/
/**
* This class has methods to create <code>Subject</code> object.
*
* @supported.all.api
* @deprecated since 12.0.0
*/
/**
* Default Constructor.
*/
protected FSSubject() {}
/**
* Constructor creates <code>FSSubject</code> object.
*
* @param nameIdentifier the <code>NameIdentifier</code> of
* the subject.
* @param subjectConfirmation the <code>SubjectConfirmation</code>
* object.
* @param idpNameIdentifier the <code>IDPProvidedNameIdentifier</code>
* object.
* @throws FSMsgException if there is an error creating this object.
* @throws SAMLException if there is an error creating this object.
*/
throws FSMsgException, SAMLException {
super(nameIdentifier, subjectConfirmation);
}
/**
* Constructor creates <code>FSSubject</code> object.
*
* @param nameIdentifier the <code>NameIdentifier</code> of
* the subject.
* @param idpNameIdentifier the <code>IDPProvidedNameIdentifier</code>
* object.
* @throws FSMsgException if there is an error creating this object.
* @throws SAMLException if there is an error creating this object.
*/
throws FSMsgException, SAMLException {
super(nameIdentifier);
}
/**
* Constructor creates <code>FSSubject</code> object from
* the Document Element.
*
* @param subjectElement the Document Element
* @throws FSMsgException if there is an error creating this object.
* @throws SAMLException if there is an error creating this object.
*/
throws FSMsgException, SAMLException {
int elementCount=0;
if (rootTagName == null) {
}
}
}
}
if (length == 0 ) {
}
}
for (int n=0; n < length; n++) {
continue;
}
elementCount++;
elementCount++;
elementCount++;
} else {
+ "encountered.");
}
}
}
if (elementCount > 3 ) {
+ "passed");
}
}
}
/**
* Constructor creates <code>FSSubject</code> object.
*
* @param subjectConfirmation the <code>SubjectConfirmation</code> object.
* @throws SAMLException if there is an error creating this object.
*/
throws SAMLException {
super(subjectConfirmation);
}
/**
* Sets the Identity Provider's <code>NameIdentifier</code>.
*
* @param idpNameIdentifier the Identity Provider's
* <code>NameIdentifier</code>.
*/
public boolean setIDPProvidedNameIdentifier(
if (idpNameIdentifier == null) {
+ "specified");
}
return false;
}
return true;
}
/**
* Returns the Identity Provider's <code>NameIdentifier</code>.
*
* @return the Identity Provider's <code>NameIdentifier</code>.
*/
return _idpNameIdentifier;
}
/**
* Returns a String representation of this object.
*
* @return a string containing the valid XML for this element
* @throws FSMsgException if there is an error converting
* this object ot a string.
*/
return xml;
}
/**
* Returns a String representation of the Logout Response.
*
* @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 {
if (includeNS) {
}
if (declareNS) {
}
append("xsi:type").
append("\"").
append(">");
if (getNameIdentifier() != null ) {
}
if (getSubjectConfirmation() != null) {
}
if (_idpNameIdentifier != null ) {
}
}
}