/* * JBoss, Home of Professional Open Source. * Copyright 2008, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.picketlink.identity.federation.saml.v2.assertion; import java.io.Serializable; import java.util.Collections; import java.util.HashMap; import java.util.Map; import javax.xml.datatype.XMLGregorianCalendar; import javax.xml.namespace.QName; /** * <p> * Java class for SubjectConfirmationDataType complex type. * * <p> * The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="SubjectConfirmationDataType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <any/> * </sequence> * <attribute name="NotBefore" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> * <attribute name="NotOnOrAfter" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> * <attribute name="Recipient" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * <attribute name="InResponseTo" type="{http://www.w3.org/2001/XMLSchema}NCName" /> * <attribute name="Address" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ public class SubjectConfirmationDataType implements Serializable { private static final long serialVersionUID = 7695748370849965158L; protected XMLGregorianCalendar notBefore; protected XMLGregorianCalendar notOnOrAfter; protected String recipient; protected String inResponseTo; protected String address; private final Map<QName, String> otherAttributes = new HashMap<QName, String>(); private Object anyType; public Object getAnyType() { return anyType; } public void setAnyType(Object anyType) { this.anyType = anyType; } /** * Gets the value of the notBefore property. * * @return possible object is {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getNotBefore() { return notBefore; } /** * Sets the value of the notBefore property. * * @param value allowed object is {@link XMLGregorianCalendar } * */ public void setNotBefore(XMLGregorianCalendar value) { this.notBefore = value; } /** * Gets the value of the notOnOrAfter property. * * @return possible object is {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getNotOnOrAfter() { return notOnOrAfter; } /** * Sets the value of the notOnOrAfter property. * * @param value allowed object is {@link XMLGregorianCalendar } * */ public void setNotOnOrAfter(XMLGregorianCalendar value) { this.notOnOrAfter = value; } /** * Gets the value of the recipient property. * * @return possible object is {@link String } * */ public String getRecipient() { return recipient; } /** * Sets the value of the recipient property. * * @param value allowed object is {@link String } * */ public void setRecipient(String value) { this.recipient = value; } /** * Gets the value of the inResponseTo property. * * @return possible object is {@link String } * */ public String getInResponseTo() { return inResponseTo; } /** * Sets the value of the inResponseTo property. * * @param value allowed object is {@link String } * */ public void setInResponseTo(String value) { this.inResponseTo = value; } /** * Gets the value of the address property. * * @return possible object is {@link String } * */ public String getAddress() { return address; } /** * Sets the value of the address property. * * @param value allowed object is {@link String } * */ public void setAddress(String value) { this.address = value; } /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * * <p> * the map is keyed by the name of the attribute and the value is the string value of the attribute. * * @return always non-null */ public Map<QName, String> getOtherAttributes() { return Collections.unmodifiableMap(otherAttributes); } /** * Add an other attribute * * @param qname * @param str */ public void addOtherAttribute(QName qname, String str) { otherAttributes.put(qname, str); } /** * Remove an other attribute * * @param qname {@link QName} of the attribute to be removed */ public void removeOtherAttribute(QName qname) { otherAttributes.remove(qname); } }