Fix DecryptionResult constructor

This commit is contained in:
Paul Schaub 2023-10-31 14:46:41 +01:00
parent 049c18c17b
commit 4b9e2c206f
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -6,11 +6,10 @@ package sop
import sop.util.Optional
data class DecryptionResult
internal constructor(val sessionKey: Optional<SessionKey>, val verifications: List<Verification>) {
class DecryptionResult(sessionKey: SessionKey?, val verifications: List<Verification>) {
val sessionKey: Optional<SessionKey>
constructor(
sessionKey: SessionKey?,
verifications: List<Verification>
) : this(Optional.ofNullable(sessionKey), verifications)
init {
this.sessionKey = Optional.ofNullable(sessionKey)
}
}