/**
* 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: AuthnContext.java,v 1.3 2008/06/25 05:46:46 qcheng Exp $
* Portions Copyrighted 2014 ForgeRock AS
*/
/**
* This class <code>AuthnContext</code> represents an Authentication Context
* for the authenticated user with a requested authn context.
*
* @supported.all.api
* @deprecated since 12.0.0
*/
public class AuthnContext {
/**
* Default constructor
*/
public AuthnContext() {}
/**
* Constructor creates <code>AuthnContext</code> object.
*
* @param authnContextClassRef Authentication Context Class Reference URI
* @param authnContextStatementRef Authentication Context
* Statement Reference URI
*/
}
/**
* Constructor creates <code>AuthnContext</code> object
* from the Document Element.
*
* @param root the Document Element.
* @throws FSMsgException on error.
*/
}
}
}
for (int i = 0; i < length; i++) {
continue;
}
if(authnContextClassRef != null) {
+ "contain only one AuthnContextClassRef element");
}
if(authnContextStatementRef != null) {
+ " only one AuthnContextStatementRef element");
}
"Authentication Statement");
}
}
}
}
/**
* Returns the AuthnContext Class Reference URI.
*
* @return the AuthnContext Class Reference URI.
* @see #setAuthnContextClassRef
*/
return authnContextClassRef;
}
/**
* Sets the AuthnContext Class Reference URI.
*
* @param authnContextClassRef AuthnContext Class Ref URI.
* @see #getAuthnContextClassRef
*/
}
/**
* Returns the AuthnContext Statement Reference URI.
*
* @return the AuthnContext Statement Reference URI.
* @see #setAuthnContextStatementRef
*/
return authnContextStatementRef;
}
/**
* Sets AuthnContext Statement Reference URI.
*
* @param authnContextStatementRef AuthnContext Statement Ref URI.
* @see #getAuthnContextStatementRef
*/
public void setAuthnContextStatementRef(
}
/**
* Returns the <code>MinorVersion</code> attribute.
*
* @return the Minor Version.
* @see #setMinorVersion(int)
*/
public int getMinorVersion() {
return minorVersion;
}
/**
* Sets the <code>MinorVersion</code>.
*
* @param version the minor version in the assertion.
* @see #setMinorVersion(int)
*/
}
/**
* 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 this.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) {
} else {
}
}
if(authnContextClassRef != null &&
} else {
}
if(authnContextStatementRef != null &&
} else {
}
}
}