diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2013-12-13 04:06:05 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2013-12-13 04:06:05 +0000 |
commit | 438727ab21b5e80d1771279b988d6aed57ba3ab1 (patch) | |
tree | 1de5dc68467b378d7ece4a1119ac539dca6462c9 /STAL/src/main/java/at | |
parent | da6c49cbea9c80ad057a5fc3b698ce14ad9a7415 (diff) | |
download | mocca-438727ab21b5e80d1771279b988d6aed57ba3ab1.tar.gz mocca-438727ab21b5e80d1771279b988d6aed57ba3ab1.tar.bz2 mocca-438727ab21b5e80d1771279b988d6aed57ba3ab1.zip |
Add ExcludedByteRange to STAL SignatureRequest, honour it for digest calculation
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1264 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'STAL/src/main/java/at')
-rw-r--r-- | STAL/src/main/java/at/gv/egiz/stal/SignRequest.java | 125 |
1 files changed, 124 insertions, 1 deletions
diff --git a/STAL/src/main/java/at/gv/egiz/stal/SignRequest.java b/STAL/src/main/java/at/gv/egiz/stal/SignRequest.java index 52a3ffcd..6041cf5d 100644 --- a/STAL/src/main/java/at/gv/egiz/stal/SignRequest.java +++ b/STAL/src/main/java/at/gv/egiz/stal/SignRequest.java @@ -24,15 +24,19 @@ 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; + /** * <p>Java class for SignRequestType complex type. * @@ -55,6 +59,16 @@ import javax.xml.bind.annotation.XmlValue; * </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="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> @@ -68,7 +82,8 @@ import javax.xml.bind.annotation.XmlValue; "keyIdentifier", "signedInfo", "signatureMethod", - "digestMethod" + "digestMethod", + "excludedByteRange" }) public class SignRequest extends STALRequest { @@ -81,6 +96,8 @@ public class SignRequest protected String signatureMethod; @XmlElement(name = "DigestMethod") protected String digestMethod; + @XmlElement(name = "ExcludedByteRange") + protected SignRequest.ExcludedByteRange excludedByteRange; @XmlTransient protected List<HashDataInput> hashData; @@ -180,6 +197,30 @@ public class SignRequest this.digestMethod = value; } + /** + * Gets the value of the excludedByteRange property. + * + * @return + * possible object is + * {@link ExcludedByteRange.ExcludedByteRange } + * + */ + public SignRequest.ExcludedByteRange getExcludedByteRange() { + return excludedByteRange; + } + + /** + * Sets the value of the excludedByteRange property. + * + * @param value + * allowed object is + * {@link ExcludedByteRange.ExcludedByteRange } + * + */ + public void setExcludedByteRange(SignRequest.ExcludedByteRange value) { + this.excludedByteRange = value; + } + public List<HashDataInput> getHashDataInput() { return hashData; } @@ -188,6 +229,87 @@ public class SignRequest this.hashData = hashData; } + + /** + * <p>Java class for anonymous complex type. + * + * <p>The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <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> + * </pre> + * + * + */ + @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; + } + + } + + /** * <p>Java class for anonymous complex type. * @@ -267,4 +389,5 @@ public class SignRequest } } + } |