Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/Threema/Core/License/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 994 B image not shown  

Quelle  LicenseCredentialsLoader.swift   Sprache: JAVA

 

import CocoaLumberjackSwift
import Foundation
import Keychain

// MARK: - OnboardingLicenseCredentialsLoading

/// Source of license credentials that were stored by a previous installation of this app
protocol OnboardingLicenseCredentialsLoading {
    /// Credentials that can be used before the app is set up, `nil` if there are none
    func loadCredentials() throws -> LicenseCredentials?
}

// MARK: - KeychainLicenseCredentialsLoader

struct KeychainLicenseCredentialsLoader: OnboardingLicenseCredentialsLoading {

    func loadCredentials() throws -> LicenseCredentials? {
        guard let license = try KeychainManager.loadUnencryptedLicense() else {
            DDLogNotice("[LicenseCredentialsLoader] No (unencrypted) license in keychain")
            return nil
        }

        return LicenseCredentials(
            username: license.user,
            password: license.password,
            server: license.onPremServer,
            deviceID: license.deviceID
        )
    }
}

Messung
CHZG
848910091

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.