Derived PinTanVerschluesselteDatenDatenelement from BinaerDatenelement
This commit is contained in:
parent
b1617d964c
commit
07721719dc
|
@ -1,7 +1,7 @@
|
||||||
package net.dankito.fints.messages.datenelemente.implementierte.encryption
|
package net.dankito.fints.messages.datenelemente.implementierte.encryption
|
||||||
|
|
||||||
import net.dankito.fints.messages.Existenzstatus
|
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
|
* It simply gets, prefixed by '@<payload_length>@', appended to VerschluesselteDaten segment header
|
||||||
*/
|
*/
|
||||||
open class PinTanVerschluesselteDatenDatenelement(val payload: String) : Datenelement(Existenzstatus.Mandatory) {
|
open class PinTanVerschluesselteDatenDatenelement(payload: String)
|
||||||
|
: BinaerDatenelement(payload, Existenzstatus.Mandatory)
|
||||||
override fun format(): String {
|
|
||||||
return "@${payload.length}@" + payload
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun validate() {
|
|
||||||
// payload has already been validated, nothing to do
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue