/**
* 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: RequestAuthnContext.java,v 1.2 2008/06/25 05:46:47 qcheng Exp $
* Portions Copyrighted 2014 ForgeRock AS
*/
/**
* This class <code>RequestAuthnContext</code> represents the requesting
* Authentication Context as part of the <code>FSAuthnRequest</code>.
*
* @supported.all.api
* @deprecated since 12.0.0
*/
public class RequestAuthnContext {
/**
* Constructor to create <code>RequestAuthnContext</code> object.
*
* @param authnContextClassRefList
* Ordered list of AuthnContext Classes Refs.
* @param authnContextStatementRefList
* Ordered list of AuthnContext Statement Refs.
* Note: authnContextClassRefList and authContextStatementRefList
* are mutually exclusive lists.
* @param authnContextComparison AuthnContext Comparison Type.
* Possible values are <code>exact</code>, <code>minimum<code>,
* <code>better</code> and <code>maximum</code>.
*/
public RequestAuthnContext (
}
/**
* Default constructor.
*/
public RequestAuthnContext(){}
/**
* Constructor to create <code>RequestAuthnContext</code> object from
* Docuemnt Element.
*
* @param root the Document Element.
* @throws FSMsgException on error.
*/
}
}
}
for(int i = 0; i < length; i++) {
continue;
}
if(authnContextStatementRefList != null) {
+ "contain either <AuthnContextStatementRef> or "
+ "<AuthnContextClassRef>");
}
if(authnContextClassRefList == null ||
authnContextClassRefList = new ArrayList();
}
if(authnContextClassRefList != null) {
+ "contain either <AuthnContextStatementRef> or "
+ "<AuthnContextClassRef>");
}
if(authnContextStatementRefList == null ||
authnContextStatementRefList = new ArrayList();
}
}
}
}
/**
* Returns <code>List</code> of <code>AuthnContext</code> Class References.
*
* @return <code>List</code> of <code>AuthnContext</code> Class Reference
* classes.
* @see #setAuthnContextClassRefList(List)
*/
return authnContextClassRefList;
}
/**
* Sets a <code>List</code> of <code>AuthnContext</code> Class References.
*
* @param authnContextClassRefList a <code>List</code> of
* <code>AuthnContext</code> Class References.
* @see #getAuthnContextClassRefList
*/
public void setAuthnContextClassRefList(
}
/**
* Returns a <code>List</code> of <code>AuthnContext</code> Statement
* References.
*
* @return a <code>List</code> of <code>AuthnContext</code> Statement
* References.
* @see #setAuthnContextStatementRefList(List)
*/
return this.authnContextStatementRefList;
}
/**
* Sets a <code>List</code> of <code>AuthnContext</code> Statement
* References.
*
* @param authnContextStatementRefList a <code>List</code> of
* <code>AuthnContext</code> Statement References.
* @see #getAuthnContextStatementRefList
*/
public void setAuthnContextStatementRefList(
}
/**
* Returns the <code>AuthnContext</code> Comparison type.
*
* @return authnContextComparison the <code>AuthnContext</code> Comparison
* type.
* @see #setAuthnContextComparison(String)
*/
return authnContextComparison;
}
/**
* Sets the <code>AuthnContext</code> comparison type.
*
* @param authnContextComparison the <code>AuthnContext</code> comparison
* type.
* @see #getAuthnContextComparison
*/
}
/**
* Returns the <code>MinorVersion</code>.
*
* @return the <code>MinorVersion</code>.
* @see #setMinorVersion(int)
*/
public int getMinorVersion() {
return minorVersion;
}
/**
* Sets the <code>MinorVersion</code>.
*
* @param minorVersion the <code>MinorVersion</code>.
* @see #getMinorVersion()
*/
this.minorVersion = minorVersion;
}
/**
* Returns a String representation of the Logout Response.
*
* @return a string containing the valid XML for this element
* @throws FSMsgException if there is an error converting
* this object ot a string.
*/
return this.toXMLString(true, false);
}
/**
* 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 to a string.
*/
throws FSMsgException {
}
/**
* 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.
* @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) {
} else {
}
}
} else {
}
if ((authnContextClassRefList != null) &&
if((authnContextStatementRefList != null) &&
}
while (j.hasNext()) {
}
}
if ((authnContextStatementRefList != null) &&
while (j.hasNext()) {
}
}
}
} else {
}
}
/**
* Returns <code>RequestAuthnContext</code> object. The
* object is creating by parsing the <code>HttpServletRequest</code>
* object.
*
* @param request the <code>HttpServletRequest</code> object.
* @return <code><RequestAuthnContext/code> object.
* @throws FSMsgException if there is an error
* creating <code>RequestAuthnContext</code> object.
*/
throws FSMsgException {
if(strAuthnContextClassRef != null){
while (st.hasMoreTokens()) {
}
}
}
if(strAuthnContextStatementRef != null){
while (st.hasMoreTokens()) {
new ArrayList();
}
}
}
if(strAuthnContextComparison != null) {
}
return retAuthnContext;
}
/**
* Returns an URL Encoded String.
*
* @return a url encoded query string.
* @throws FSMsgException if there is an error.
*/
if ((authnContextClassRefList != null) &&
(!authnContextClassRefList.isEmpty())) {
if((authnContextStatementRefList != null) &&
(!authnContextStatementRefList.isEmpty())) {
}
while(j.hasNext()) {
}
}
if ((authnContextStatementRefList != null) &&
(!authnContextStatementRefList.isEmpty())) {
while (j.hasNext()) {
}
}
if(authnContextComparison != null) {
}
}
return urlEncodedAuthnReq.toString();
}
}