mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-22 15:12:06 +01:00
Fix DecryptionResult constructor
This commit is contained in:
parent
049c18c17b
commit
4b9e2c206f
1 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue