/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.keycloak.dom.saml.v2.protocol; import org.keycloak.dom.saml.common.CommonResponseType; import org.keycloak.dom.saml.v2.SAML2Object; import org.keycloak.dom.saml.v2.assertion.NameIDType; import javax.xml.datatype.XMLGregorianCalendar; /** * <p> * Java class for StatusResponseType complex type. * * <p> * The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="StatusResponseType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Issuer" minOccurs="0"/> * <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/> * <element ref="{urn:oasis:names:tc:SAML:2.0:protocol}Extensions" minOccurs="0"/> * <element ref="{urn:oasis:names:tc:SAML:2.0:protocol}Status"/> * </sequence> * <attribute name="ID" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" /> * <attribute name="InResponseTo" type="{http://www.w3.org/2001/XMLSchema}NCName" /> * <attribute name="Version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="IssueInstant" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> * <attribute name="Destination" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * <attribute name="Consent" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * </restriction> * </complexContent> * </complexType> * </pre> */ public class StatusResponseType extends CommonResponseType implements SAML2Object { protected NameIDType issuer; protected ExtensionsType extensions; protected StatusType status; protected String id; protected String version = "2.0"; protected XMLGregorianCalendar issueInstant; protected String destination; protected String consent; public StatusResponseType(String id, XMLGregorianCalendar issueInstant) { super(id, issueInstant); } public StatusResponseType(StatusResponseType srt) { this(srt.getID(), srt.getIssueInstant()); this.issuer = srt.getIssuer(); this.signature = srt.getSignature(); this.extensions = srt.getExtensions(); this.status = srt.getStatus(); this.inResponseTo = srt.getInResponseTo(); this.destination = srt.getDestination(); this.consent = srt.getConsent(); } /** * Gets the value of the issuer property. * * @return possible object is {@link NameIDType } */ public NameIDType getIssuer() { return issuer; } /** * Sets the value of the issuer property. * * @param value allowed object is {@link NameIDType } */ public void setIssuer(NameIDType value) { this.issuer = value; } /** * Gets the value of the extensions property. * * @return possible object is {@link ExtensionsType } */ public ExtensionsType getExtensions() { return extensions; } /** * Sets the value of the extensions property. * * @param value allowed object is {@link ExtensionsType } */ public void setExtensions(ExtensionsType value) { this.extensions = value; } /** * Gets the value of the status property. * * @return possible object is {@link StatusType } */ public StatusType getStatus() { return status; } /** * Sets the value of the status property. * * @param value allowed object is {@link StatusType } */ public void setStatus(StatusType value) { this.status = value; } /** * Gets the value of the version property. * * @return possible object is {@link String } */ public String getVersion() { return version; } /** * Gets the value of the destination property. * * @return possible object is {@link String } */ public String getDestination() { return destination; } /** * Sets the value of the destination property. * * @param value allowed object is {@link String } */ public void setDestination(String value) { this.destination = value; } /** * Gets the value of the consent property. * * @return possible object is {@link String } */ public String getConsent() { return consent; } /** * Sets the value of the consent property. * * @param value allowed object is {@link String } */ public void setConsent(String value) { this.consent = value; } }