mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-01 14:22:48 -08:00
clean up
This commit is contained in:
1 parent
e5d58721dd
commit
3b967dd4e3
25 files changed
+379
-208
No files matched your search
@@ -1,3 +1,22 @@
|
||||
/*
|
||||
* Copyright 2022 Jeremy Jamet / Kunzisoft.
|
||||
*
|
||||
* This file is part of KeePassDX.
|
||||
*
|
||||
* KeePassDX is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* KeePassDX 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with KeePassDX. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
package com.kunzisoft.keepass.model
|
||||
|
||||
import android.net.Uri
|
||||
@@ -9,14 +28,13 @@ import com.kunzisoft.keepass.utils.writeEnum
|
||||
class CipherEncryptDatabase(): Parcelable {
|
||||
|
||||
var databaseUri: Uri? = null
|
||||
var credentialStorage: com.kunzisoft.keepass.model.CredentialStorage =
|
||||
com.kunzisoft.keepass.model.CredentialStorage.Companion.DEFAULT
|
||||
var credentialStorage: CredentialStorage = CredentialStorage.DEFAULT
|
||||
var encryptedValue: ByteArray = byteArrayOf()
|
||||
var specParameters: ByteArray = byteArrayOf()
|
||||
|
||||
constructor(parcel: Parcel): this() {
|
||||
databaseUri = parcel.readParcelable(Uri::class.java.classLoader)
|
||||
credentialStorage = parcel.readEnum<com.kunzisoft.keepass.model.CredentialStorage>() ?: credentialStorage
|
||||
credentialStorage = parcel.readEnum<CredentialStorage>() ?: credentialStorage
|
||||
encryptedValue = ByteArray(parcel.readInt())
|
||||
parcel.readByteArray(encryptedValue)
|
||||
specParameters = ByteArray(parcel.readInt())
|
||||
|
||||
Reference in new issue
Block a user