/**
* 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: SubjectConfirmationDataImpl.java,v 1.5 2008/11/10 22:57:01 veiming Exp $
*
*/
/**
* The <code>SubjectConfirmationData</code> specifies additional data
* that allows the subject to be confirmed or constrains the circumstances
* under which the act of subject confirmation can take place. Subejct
* confirmation takes place when a relying party seeks to verify the
* relationship between an entity presenting the assertion and the
* subject of the assertion's claims.
*/
protected boolean mutable = false;
public SubjectConfirmationDataImpl() {
mutable = true;
}
}
throw new SAML2Exception("");
}
}
// make sure that the input xml block is not null
+ "Input is null.");
}
throw new SAML2Exception(
}
// Make sure this is an SubjectConfirmationData.
+ "not SubjectConfirmationData.");
}
throw new SAML2Exception(
}
// handle the attributes of <SubjectConfirmationData> element
}
/**
* Parse and sets content values
*
* @param element Element for this class object
*/
throws SAML2Exception
{
return;
}
// Parses the Content Element.
}
}
}
}
}
/**
* Sets all the attribute values
*
* @param attrs Map table has attribute name and value pairs
*/
throws SAML2Exception
{
return;
}
try {
for (int i = 0; i < length; i++) {
} else {
continue;
}
}
} catch (ParseException e) {
}
throw new SAML2Exception(
}
}
/**
* Returns the time instant at which the subject can no longer be
* confirmed
*
* @return the time instant at which the subject can no longer be
* confirmed
* @see #setNotOnOrAfter(Date)
*/
return notOnOrAfter;
}
/**
* Sets the time instant at which the subject can no longer be
* confirmed
*
* @param value the time instant at which the subject can no longer be
* confirmed
* @exception SAML2Exception if the object is immutable
* @see #getNotOnOrAfter
*/
{
if (!mutable) {
throw new SAML2Exception(
}
}
/**
* Returns the ID of a SAML protocol message in response to which
* an attesting entity can present the assertion
*
* @return the ID of a SAML protocol message in response to which
* an attesting entity can present the assertion
* @see #setInResponseTo(String)
*/
{
return inResponseTo;
}
/**
* Sets the ID of a SAML protocol message in response to which
* an attesting entity can present the assertion
*
* @param value the ID of a SAML protocol message in response to which
* an attesting entity can present the assertion
* @exception SAML2Exception if the object is immutable
* @see #getInResponseTo
*/
{
if (!mutable) {
throw new SAML2Exception(
}
}
/**
* Returns a list of arbitrary XML elements to be added to this
* <code>SubejctConfirmationData</code> object.
*
* @return a list of arbitrary XML elements to be added to this
* <code>SubejctConfirmationData</code> object.
* @see #setContent(List)
*/
{
}
return content;
}
/**
* Sets a list of arbitrary XML elements to be added to this
* <code>SubejctConfirmationData</code> object.
*
* @param value a list of arbitrary XML elements to be added to this
* <code>SubejctConfirmationData</code> object.
* @exception SAML2Exception if the object is immutable
* @see #getContent()
*/
{
if (!mutable) {
throw new SAML2Exception(
}
}
/**
* Returns the URI specifying the entity or location to which an
* attesting entity can present the assertion
*
* @return the URI specifying the entity or location to which an
* attesting entity can present the assertion
* @see #setRecipient(String)
*/
{
return recipient;
}
/**
* Sets the URI specifying the entity or location to which an
* attesting entity can present the assertion
*
* @param value the URI specifying the entity or location to which an
* attesting entity can present the assertion
* @exception SAML2Exception if the object is immutable
* @see #getRecipient
*/
{
if (!mutable) {
throw new SAML2Exception(
}
}
/**
* Returns the time instant before which the subject cannot be confirmed
*
* @return the time instant before which the subject cannot be confirmed
* @see #setNotBefore(Date)
*/
{
return notBefore;
}
/**
* Sets the time instant before which the subject cannot be confirmed
*
* @param value the time instant before which the subject cannot
* be confirmed
* @exception SAML2Exception if the object is immutable
* @see #getNotBefore
*/
{
if (!mutable) {
throw new SAML2Exception(
}
}
/**
* entity can present the assertion
*
* entity can present the assertion
* @see #setAddress(String)
*/
{
return address;
}
/**
* entity can present the assertion
*
* entity can present the assertion
* @exception SAML2Exception if the object is immutable
* @see #getAddress
*/
{
if (!mutable) {
throw new SAML2Exception(
}
}
/**
* Returns the content type attribute
*
* @return the content type attribute
* @see #setContentType(String)
*/
{
return contentType;
}
/**
* Sets the content type attribute.
*
* @param attribute attribute type value for the content that will be
* added
* @throws SAML2Exception if the object is immutable
*/
if (!mutable) {
throw new SAML2Exception(
}
}
/**
* Returns a String representation of the element
*
* @return A String representation
* @exception SAML2Exception if something is wrong during conversion
*/
{
return toXMLString(true, false);
}
/**
* Returns a String representation of the element
* @param includeNSPrefix Determines whether the namespace qualifier is
* prepended to the Element when converted
* @param declareNS Determines whether the namespace is declared
* within the Element.
* @return A String representation
* @exception SAML2Exception if something is wrong during conversion
*/
throws SAML2Exception
{
if (declareNS) {
}
if (includeNSPrefix) {
}
}
/**
* Returns a String representation of the element value
* @param includeNSPrefix Determines whether 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 representation
* @exception SAML2Exception if something is wrong during conversion
*/
throws SAML2Exception
{
if (notOnOrAfter != null) {
}
if (inResponseTo != null) {
}
}
}
}
if(contentType != null) {
.append("xsi:type=\"")
.append("\" ");
}
if (!getContent().isEmpty()) {
}
}
}
}
/**
* Makes the object immutable
*/
public void makeImmutable()
{
if (!mutable) {
return;
}
mutable = false;
}
}
/**
* Returns true if the object is mutable
*
* @return true if the object is mutable
*/
public boolean isMutable()
{
return mutable;
}
}