Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit fd2dae86 authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé
Browse files

refactor(core-preference): add AccountKeyGenerator to legacy module

parent 01e820e9
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
package net.thunderbird.feature.account.storage.legacy

import net.thunderbird.feature.account.AccountId

/**
 * Generates keys for account storage.
 */
class AccountKeyGenerator(
    private val id: AccountId,
) {

    /**
     * Creates a key by combining account ID with the specified key.
     *
     * @param key The key to combine with the account ID.
     */
    fun create(key: String): String {
        return "${id.asRaw()}.$key"
    }
}
+292 −286

File changed.

Preview size limit exceeded, changes collapsed.