/* * Copyright 2011 by Graz University of Technology, Austria * MOCCA has been developed by the E-Government Innovation Center EGIZ, a joint * initiative of the Federal Chancellery Austria and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the European Commission - subsequent versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Licence at: * http://www.osor.eu/eupl/ * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licence for the specific language governing permissions and * limitations under the Licence. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. */ package at.gv.egiz.stal; import java.math.BigInteger; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlTransient; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlValue; /** *

Java class for SignRequestType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="SignRequestType">
 *   <complexContent>
 *     <extension base="{http://www.egiz.gv.at/stal}RequestType">
 *       <sequence>
 *         <element name="KeyIdentifier" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="SignedInfo">
 *           <complexType>
 *             <simpleContent>
 *               <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
 *                 <attribute name="IsCMSSignedAttributes" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *               </extension>
 *             </simpleContent>
 *           </complexType>
 *         </element>
 *         <element name="SignatureMethod" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="DigestMethod" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="displayName" type="{http://www.w3.org/2001/XMLSchema}string minOccurs="0">
 *         <element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string minOccurs="0"/>
 *         <element name="ExcludedByteRange" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <attribute name="from" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
 *                 <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SignRequestType", propOrder = { "keyIdentifier", "signedInfo", "signatureMethod", "digestMethod", "mimeType", "excludedByteRange" }) public class SignRequest extends STALRequest { @XmlElement(name = "KeyIdentifier", required = true) protected String keyIdentifier; @XmlElement(name = "SignedInfo", required = true) protected SignRequest.SignedInfo signedInfo; @XmlElement(name = "SignatureMethod") protected String signatureMethod; @XmlElement(name = "DigestMethod") protected String digestMethod; @XmlElement(name = "displayName") protected String displayName; @XmlElement(name = "mimeType") protected String mimeType; @XmlElement(name = "ExcludedByteRange") protected SignRequest.ExcludedByteRange excludedByteRange; @XmlTransient protected List hashData; /** * Gets the value of the keyIdentifier property. * * @return * possible object is * {@link String } * */ public String getKeyIdentifier() { return keyIdentifier; } /** * Sets the value of the keyIdentifier property. * * @param value * allowed object is * {@link String } * */ public void setKeyIdentifier(String value) { this.keyIdentifier = value; } /** * Gets the value of the signedInfo property. * * @return * possible object is SignRequestType.SignedInfo * */ public SignRequest.SignedInfo getSignedInfo() { return signedInfo; } /** * Sets the value of the signedInfo property. * * @param value * allowed object is SignRequestType.SignedInfo * */ public void setSignedInfo(SignRequest.SignedInfo value) { this.signedInfo = value; } /** * Gets the value of the signatureMethod property. * * @return * possible object is * {@link String } * */ public String getSignatureMethod() { return signatureMethod; } /** * Sets the value of the signatureMethod property. * * @param value * allowed object is * {@link String } * */ public void setSignatureMethod(String value) { this.signatureMethod = value; } /** * Gets the value of the digestMethod property. * * @return * possible object is * {@link String } * */ public String getDigestMethod() { return digestMethod; } /** * Sets the value of the digestMethod property. * * @param value * allowed object is * {@link String } * */ public void setDigestMethod(String value) { this.digestMethod = value; } /** * Sets the value of the displayName property. * * @param value * allowed object is * {@link String } * */ public void setDisplayName(String value) { this.displayName = value; } /** * Gets the value of the displayName property. * * @return * possible object is * {@link String } * */ public String getDisplayName() { return displayName; } /** * Gets the value of the mimeType property. * * @return * possible object is * {@link String } * */ public String getMimeType() { return mimeType; } /** * Sets the value of the mimeType property. * * @param value * allowed object is * {@link String } * */ public void setMimeType(String value) { this.mimeType = value; } /** * Gets the value of the excludedByteRange property. * * @return * possible object is ExcludedByteRange.ExcludedByteRange * */ public SignRequest.ExcludedByteRange getExcludedByteRange() { return excludedByteRange; } /** * Sets the value of the excludedByteRange property. * * @param value * allowed object is ExcludedByteRange.ExcludedByteRange * */ public void setExcludedByteRange(SignRequest.ExcludedByteRange value) { this.excludedByteRange = value; } public List getHashDataInput() { return hashData; } public void setHashDataInput(List hashData) { this.hashData = hashData; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <attribute name="from" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
     *       <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class ExcludedByteRange { @XmlAttribute(required = true) @XmlSchemaType(name = "unsignedLong") protected BigInteger from; @XmlAttribute(required = true) @XmlSchemaType(name = "unsignedLong") protected BigInteger to; /** * Gets the value of the from property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getFrom() { return from; } /** * Sets the value of the from property. * * @param value * allowed object is * {@link BigInteger } * */ public void setFrom(BigInteger value) { this.from = value; } /** * Gets the value of the to property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getTo() { return to; } /** * Sets the value of the to property. * * @param value * allowed object is * {@link BigInteger } * */ public void setTo(BigInteger value) { this.to = value; } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <simpleContent>
     *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
     *       <attribute name="IsCMSSignedAttributes" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     *     </extension>
     *   </simpleContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) public static class SignedInfo { @XmlValue protected byte[] value; @XmlAttribute(name = "IsCMSSignedAttributes") protected Boolean isCMSSignedAttributes; /** * Gets the value of the value property. * * @return * possible object is * byte[] */ public byte[] getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * byte[] */ public void setValue(byte[] value) { this.value = ((byte[]) value); } /** * Gets the value of the isCMSSignedAttributes property. * * @return * possible object is * {@link Boolean } * */ public boolean isIsCMSSignedAttributes() { if (isCMSSignedAttributes == null) { return false; } else { return isCMSSignedAttributes; } } /** * Sets the value of the isCMSSignedAttributes property. * * @param value * allowed object is * {@link Boolean } * */ public void setIsCMSSignedAttributes(Boolean value) { this.isCMSSignedAttributes = value; } } }