/* * 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.protocol; import java.net.URI; import javax.xml.datatype.XMLGregorianCalendar; import org.picketlink.identity.federation.saml.v2.assertion.ConditionsType; import org.picketlink.identity.federation.saml.v2.assertion.SubjectType; /** * <p> * Java class for AuthnRequestType complex type. * * <p> * The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="AuthnRequestType"> * <complexContent> * <extension base="{urn:oasis:names:tc:SAML:2.0:protocol}RequestAbstractType"> * <sequence> * <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Subject" minOccurs="0"/> * <element ref="{urn:oasis:names:tc:SAML:2.0:protocol}NameIDPolicy" minOccurs="0"/> * <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Conditions" minOccurs="0"/> * <element ref="{urn:oasis:names:tc:SAML:2.0:protocol}RequestedAuthnContext" minOccurs="0"/> * <element ref="{urn:oasis:names:tc:SAML:2.0:protocol}Scoping" minOccurs="0"/> * </sequence> * <attribute name="ForceAuthn" type="{http://www.w3.org/2001/XMLSchema}boolean" /> * <attribute name="IsPassive" type="{http://www.w3.org/2001/XMLSchema}boolean" /> * <attribute name="ProtocolBinding" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * <attribute name="AssertionConsumerServiceIndex" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" /> * <attribute name="AssertionConsumerServiceURL" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * <attribute name="AttributeConsumingServiceIndex" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" /> * <attribute name="ProviderName" type="{http://www.w3.org/2001/XMLSchema}string" /> * </extension> * </complexContent> * </complexType> * </pre> * * */ public class AuthnRequestType extends RequestAbstractType { private static final long serialVersionUID = 1L; protected SubjectType subject; protected NameIDPolicyType nameIDPolicy; protected ConditionsType conditions; protected RequestedAuthnContextType requestedAuthnContext; protected ScopingType scoping; protected Boolean forceAuthn; protected Boolean isPassive; protected URI protocolBinding; protected Integer assertionConsumerServiceIndex; protected URI assertionConsumerServiceURL; protected Integer attributeConsumingServiceIndex; protected String providerName; public AuthnRequestType(String id, XMLGregorianCalendar instant) { super(id, instant); } /** * Gets the value of the subject property. * * @return possible object is {@link SubjectType } * */ public SubjectType getSubject() { return subject; } /** * Sets the value of the subject property. * * @param value allowed object is {@link SubjectType } * */ public void setSubject(SubjectType value) { this.subject = value; } /** * Gets the value of the nameIDPolicy property. * * @return possible object is {@link NameIDPolicyType } * */ public NameIDPolicyType getNameIDPolicy() { return nameIDPolicy; } /** * Sets the value of the nameIDPolicy property. * * @param value allowed object is {@link NameIDPolicyType } * */ public void setNameIDPolicy(NameIDPolicyType value) { this.nameIDPolicy = value; } /** * Gets the value of the conditions property. * * @return possible object is {@link ConditionsType } * */ public ConditionsType getConditions() { return conditions; } /** * Sets the value of the conditions property. * * @param value allowed object is {@link ConditionsType } * */ public void setConditions(ConditionsType value) { this.conditions = value; } /** * Gets the value of the requestedAuthnContext property. * * @return possible object is {@link RequestedAuthnContextType } * */ public RequestedAuthnContextType getRequestedAuthnContext() { return requestedAuthnContext; } /** * Sets the value of the requestedAuthnContext property. * * @param value allowed object is {@link RequestedAuthnContextType } * */ public void setRequestedAuthnContext(RequestedAuthnContextType value) { this.requestedAuthnContext = value; } /** * Gets the value of the scoping property. * * @return possible object is {@link ScopingType } * */ public ScopingType getScoping() { return scoping; } /** * Sets the value of the scoping property. * * @param value allowed object is {@link ScopingType } * */ public void setScoping(ScopingType value) { this.scoping = value; } /** * Gets the value of the forceAuthn property. * * @return possible object is {@link Boolean } * */ public Boolean isForceAuthn() { return forceAuthn; } /** * Sets the value of the forceAuthn property. * * @param value allowed object is {@link Boolean } * */ public void setForceAuthn(Boolean value) { this.forceAuthn = value; } /** * Gets the value of the isPassive property. * * @return possible object is {@link Boolean } * */ public Boolean isIsPassive() { return isPassive; } /** * Sets the value of the isPassive property. * * @param value allowed object is {@link Boolean } * */ public void setIsPassive(Boolean value) { this.isPassive = value; } /** * Gets the value of the protocolBinding property. * * @return possible object is {@link String } * */ public URI getProtocolBinding() { return protocolBinding; } /** * Sets the value of the protocolBinding property. * * @param value allowed object is {@link String } * */ public void setProtocolBinding(URI value) { this.protocolBinding = value; } /** * Gets the value of the assertionConsumerServiceIndex property. * * @return possible object is {@link Integer } * */ public Integer getAssertionConsumerServiceIndex() { return assertionConsumerServiceIndex; } /** * Sets the value of the assertionConsumerServiceIndex property. * * @param value allowed object is {@link Integer } * */ public void setAssertionConsumerServiceIndex(Integer value) { this.assertionConsumerServiceIndex = value; } /** * Gets the value of the assertionConsumerServiceURL property. * * @return possible object is {@link String } * */ public URI getAssertionConsumerServiceURL() { return assertionConsumerServiceURL; } /** * Sets the value of the assertionConsumerServiceURL property. * * @param value allowed object is {@link String } * */ public void setAssertionConsumerServiceURL(URI value) { this.assertionConsumerServiceURL = value; } /** * Gets the value of the attributeConsumingServiceIndex property. * * @return possible object is {@link Integer } * */ public Integer getAttributeConsumingServiceIndex() { return attributeConsumingServiceIndex; } /** * Sets the value of the attributeConsumingServiceIndex property. * * @param value allowed object is {@link Integer } * */ public void setAttributeConsumingServiceIndex(Integer value) { this.attributeConsumingServiceIndex = value; } /** * Gets the value of the providerName property. * * @return possible object is {@link String } * */ public String getProviderName() { return providerName; } /** * Sets the value of the providerName property. * * @param value allowed object is {@link String } * */ public void setProviderName(String value) { this.providerName = value; } }