/**
* 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: FSSAMLRequest.java,v 1.2 2008/06/25 05:46:45 qcheng Exp $
* Portions Copyrighted 2014 ForgeRock AS
*/
/**
* This class had methods to create a <code>SAML</code> Request
* object from a Document Element and to create Request message
* from this object.
*
* @supported.all.api
* @deprecated since 12.0.0
*/
/*
* Default Constructor.
*/
protected FSSAMLRequest() {}
/**
* Constructor creates <code>FSSAMLRequest</code> from
* the Document Element.
*
* @param root the Document Element.
* @throws SAMLException if there is an error creating this object.
*/
// Make sure this is a Request
"nullInput",null);
}
"wrongInput",null);
}
// Attribute MajorVersion
// Attribute MinorVersion
if (signsSize == 1) {
if (minorVersion ==
} else {
}
if (!valid) {
+ " verify Request's signature.");
}
}
signed = true;
} else if (signsSize != 0) {
+ "than one Signature element.");
}
"moreElement",null);
}
// Attribute RequestID
+ "does not have a RequestID.");
}
"missingAttribute",args);
}
// Attribute IssueInstant
+ " missing IssueInstant");
"missingAttribute",args);
} else {
try {
} catch (ParseException e) {
"FSSAMLRequest(Element): could not parse IssueInstant",
e);
"wrongInput",null);
}
}
// get the contents of the request
+ "wrong RespondWith value.");
}
"wrongInput",null);
}
respondWiths = new ArrayList();
}
// make sure the content has no other elements assigned
if ((contentType != NOT_SUPPORTED) &&
(contentType != ASSERTION_ARTIFACT)) {
+ "contained mixed contents.");
}
"wrongInput",null);
}
}
try{
}catch (Exception e){
}
} else {
+ " node" + nodeName);
}
"wrongInput",null);
} // check nodeName
} // if nodeName != null
} // done for the nodelist loop
if (contentType == NOT_SUPPORTED) {
"wrongInput",null);
}
}
/**
* Sets the <code>MajorVersion</code> by parsing the version string.
*
* @param majorVer a String representing the <code>MajorVersion</code> to
* be set.
* @throws SAMLException when the version mismatches.
*/
try {
} catch (NumberFormatException e) {
+ "MajorVersion", e);
}
"wrongInput",null);
}
+ "MajorVersion of the Request is too high.");
}
throw new SAMLRequestVersionTooHighException(
} else {
+ "MajorVersion of the Request is too low.");
}
"requestVersionTooLow",null);
}
}
}
/**
* Sets the <code>MinorVersion</code> by parsing the version string.
*
* @param minorVer a String representing the <code>MinorVersion</code> to
* be set.
* @throws SAMLException when the version mismatches.
*/
try {
} catch (NumberFormatException e) {
+ "MinorVersion", e);
}
"wrongInput",null);
}
+ " of the Request is too high.");
"requestVersionTooHigh",null);
} else if (minorVersion <
+ " of the Request is too low.");
"requestVersionTooLow",null);
}
}
/**
* 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)
*/
}
}