Derived PinTanVerschluesselteDatenDatenelement from BinaerDatenelement

This commit is contained in:
dankl 2019-10-12 21:22:51 +02:00 committed by dankito
parent b1617d964c
commit 07721719dc
1 changed files with 3 additions and 12 deletions

View File

@ -1,7 +1,7 @@
package net.dankito.fints.messages.datenelemente.implementierte.encryption
import net.dankito.fints.messages.Existenzstatus
import net.dankito.fints.messages.datenelemente.Datenelement
import net.dankito.fints.messages.datenelemente.basisformate.BinaerDatenelement
/**
@ -9,14 +9,5 @@ import net.dankito.fints.messages.datenelemente.Datenelement
*
* It simply gets, prefixed by '@<payload_length>@', appended to VerschluesselteDaten segment header
*/
open class PinTanVerschluesselteDatenDatenelement(val payload: String) : Datenelement(Existenzstatus.Mandatory) {
override fun format(): String {
return "@${payload.length}@" + payload
}
override fun validate() {
// payload has already been validated, nothing to do
}
}
open class PinTanVerschluesselteDatenDatenelement(payload: String)
: BinaerDatenelement(payload, Existenzstatus.Mandatory)