summaryrefslogtreecommitdiff
path: root/ebics/src/main/kotlin/ebics_s002
diff options
context:
space:
mode:
Diffstat (limited to 'ebics/src/main/kotlin/ebics_s002')
-rw-r--r--ebics/src/main/kotlin/ebics_s002/SignatureTypes.kt91
-rw-r--r--ebics/src/main/kotlin/ebics_s002/UserSignatureDataEbics3.kt27
-rw-r--r--ebics/src/main/kotlin/ebics_s002/package-info.java13
3 files changed, 0 insertions, 131 deletions
diff --git a/ebics/src/main/kotlin/ebics_s002/SignatureTypes.kt b/ebics/src/main/kotlin/ebics_s002/SignatureTypes.kt
deleted file mode 100644
index c1d48e9b..00000000
--- a/ebics/src/main/kotlin/ebics_s002/SignatureTypes.kt
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * This file is part of LibEuFin.
- * Copyright (C) 2019 Stanisci and Dold.
-
- * LibEuFin is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation; either version 3, or
- * (at your option) any later version.
-
- * LibEuFin 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 Affero General
- * Public License for more details.
-
- * You should have received a copy of the GNU Affero General Public
- * License along with LibEuFin; see the file COPYING. If not, see
- * <http://www.gnu.org/licenses/>
- */
-
-package tech.libeufin.ebics.ebics_s002
-
-import org.apache.xml.security.binding.xmldsig.RSAKeyValueType
-import org.apache.xml.security.binding.xmldsig.X509DataType
-import javax.xml.bind.annotation.*
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter
-import javax.xml.datatype.XMLGregorianCalendar
-
-
-object SignatureTypes {
- @XmlAccessorType(XmlAccessType.NONE)
- @XmlType(
- name = "PubKeyValueType", namespace = "http://www.ebics.org/S002", propOrder = [
- "rsaKeyValue",
- "timeStamp"
- ]
- )
- class PubKeyValueType {
- @get:XmlElement(name = "RSAKeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
- lateinit var rsaKeyValue: RSAKeyValueType
-
- @get:XmlElement(name = "TimeStamp")
- @get:XmlSchemaType(name = "dateTime")
- var timeStamp: XMLGregorianCalendar? = null
- }
-
- @XmlAccessorType(XmlAccessType.NONE)
- @XmlType(
- name = "",
- propOrder = [
- "x509Data",
- "pubKeyValue",
- "signatureVersion"
- ]
- )
- class SignaturePubKeyInfoType {
- @get:XmlElement(name = "X509Data")
- var x509Data: X509DataType? = null
-
- @get:XmlElement(name = "PubKeyValue", required = true)
- lateinit var pubKeyValue: PubKeyValueType
-
- @get:XmlElement(name = "SignatureVersion", required = true)
- @get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
- lateinit var signatureVersion: String
- }
-
- /**
- * EBICS INI payload.
- */
- @XmlAccessorType(XmlAccessType.NONE)
- @XmlType(
- name = "",
- propOrder = ["signaturePubKeyInfo", "partnerID", "userID"]
- )
- @XmlRootElement(name = "SignaturePubKeyOrderData")
- class SignaturePubKeyOrderData {
- @get:XmlElement(name = "SignaturePubKeyInfo", required = true)
- lateinit var signaturePubKeyInfo: SignaturePubKeyInfoType
-
- @get:XmlElement(name = "PartnerID", required = true)
- @get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
- @get:XmlSchemaType(name = "token")
- lateinit var partnerID: String
-
- @get:XmlElement(name = "UserID", required = true)
- @get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
- @get:XmlSchemaType(name = "token")
- lateinit var userID: String
- }
-} \ No newline at end of file
diff --git a/ebics/src/main/kotlin/ebics_s002/UserSignatureDataEbics3.kt b/ebics/src/main/kotlin/ebics_s002/UserSignatureDataEbics3.kt
deleted file mode 100644
index 082d0681..00000000
--- a/ebics/src/main/kotlin/ebics_s002/UserSignatureDataEbics3.kt
+++ /dev/null
@@ -1,27 +0,0 @@
-package tech.libeufin.ebics.ebics_s002
-
-import javax.xml.bind.annotation.*
-
-@XmlAccessorType(XmlAccessType.NONE)
-@XmlRootElement(name = "UserSignatureData")
-@XmlType(name = "", propOrder = ["orderSignatureList"])
-class UserSignatureDataEbics3 {
- @XmlElement(name = "OrderSignatureData", type = OrderSignatureData::class)
- var orderSignatureList: List<OrderSignatureData>? = null
-
- @XmlAccessorType(XmlAccessType.NONE)
- @XmlType(name = "", propOrder = ["signatureVersion", "signatureValue", "partnerID", "userID"])
- class OrderSignatureData {
- @XmlElement(name = "SignatureVersion")
- lateinit var signatureVersion: String
-
- @XmlElement(name = "SignatureValue")
- lateinit var signatureValue: ByteArray
-
- @XmlElement(name = "PartnerID")
- lateinit var partnerID: String
-
- @XmlElement(name = "UserID")
- lateinit var userID: String
- }
-} \ No newline at end of file
diff --git a/ebics/src/main/kotlin/ebics_s002/package-info.java b/ebics/src/main/kotlin/ebics_s002/package-info.java
deleted file mode 100644
index 5ddb1f77..00000000
--- a/ebics/src/main/kotlin/ebics_s002/package-info.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * This package-info.java file defines the default namespace for the JAXB bindings
- * defined in the package.
- */
-
-@XmlSchema(
- namespace = "http://www.ebics.org/S002",
- elementFormDefault = XmlNsForm.QUALIFIED
-)
-package tech.libeufin.ebics.ebics_s002;
-
-import javax.xml.bind.annotation.XmlNsForm;
-import javax.xml.bind.annotation.XmlSchema; \ No newline at end of file