SwiftclassSecureMessagingAgentCore

class SecureMessagingAgentCore.KDSRegistrationDaemon

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 48

  1. deinitdeinit
  2. fieldlet clientXPCServer: SecureMessagingAgentCore.RegistrationClientXPCServer
  3. fieldlet heartbeatBGActivity: String
  4. fieldlazy var keyPackageExchanger: SecureMessagingAgentCore.KDSRegistrationKeyPackageExchanger?
  5. fieldlet logger: os.Logger
  6. fieldlet metricReporter: SecureMessaging.DictionaryMetricReporter
  7. fieldlet mlsDaemon: SecureMessagingAgentCore.MLSDaemon
  8. fieldlet mlsDaemonID: SecureMessagingAgentCore.RegClientIdentifier
  9. fieldlet phoneNumberProvider: SecureMessagingAgentCore.PhoneNumberProvider
  10. fieldlet pushHandler: SecureMessagingAgentCore.KDSRegistrationPushHandler
  11. fieldlet registrationPersister: SecureMessagingAgentCore.KDSRegistrationPersister
  12. fieldlet setupQueue: SecureMessaging.XPCUtils.SetupQueue
  13. fieldlet state: Synchronization.Mutex<SecureMessagingAgentCore.KDSRegistrationDaemon.State>
  14. fieldlet stateMachineNetworkOperator: SecureMessagingAgentCore.KDSRegistrationStateMachineNetworkOperator
  15. fieldlet userDefaults: SecureMessaging.SMAUserDefaults
  16. funcallRegistrationStateMachines() -> [SecureMessagingAgentCore.KDSRegistrationStateMachine]
  17. funcbroadcastRegistrationState(uniqueClientIdentifier: SecureMessaging.KDSRegistration.UniqueClientIdentifier, simUniqueID: String, phoneNumber: SecureMessaging.URI?, newRegistrationState: SecureMessaging.KDSRegistration.IsRegisteredResult) async throws -> ()
  18. funcclearGroupAndClientState(for: SecureMessaging.URI) async throws -> ()
  19. funccredentialSigningRequest(for: SecureMessaging.URI) async throws -> SecureMessaging.MLS.SwiftMLSRCSCSRProtocol?
  20. funcgetCredential(for: SecureMessaging.URI) async throws -> SwiftMLS.MLS.Identity.Credential
  21. funcgetKeyPackage(for: SecureMessaging.URI) async throws -> SecureMessaging.MLS.KeyPackageInfo
  22. funcgetPhoneNumberInfo(for: String, needsFreshPNRToken: Bool) async throws -> SecureMessagingAgentCore.PhoneNumberInfo
  23. funcheartbeatRegistration(heartbeatBGTask: BGSystemTask) async -> ()
  24. funcisRegistered(simUniqueID: String, context: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> ()
  25. funcisRegistered(clientXPCInformation: Foundation.Data, context: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> ()
  26. funcloadCredential(credential: SwiftMLS.MLS.Identity.Credential, uri: SecureMessaging.URI) async throws -> ()
  27. funcloadRegistrationStateMachines() async -> ()
  28. funcnoteRegistrationComplete(for: String) -> ()
  29. funcobtainPhoneAuthInfo(uniqueClientIdentifier: SecureMessaging.KDSRegistration.UniqueClientIdentifier, accountKey: Foundation.Data, hasAccountKeyChanged: Bool) async throws -> SecureMessaging.KDSRegistration.EncryptedRCS.PhoneAuthenticationResult
  30. funcparticipantKey(simUniqueID: String, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> ()
  31. funcparticipantKeyHash(label: SecureMessaging.KDSRegistration.ParticipantKeyHashLabel, for: SecureMessaging.URI) async throws -> Foundation.Data
  32. funcparticipantKeyHash(simUniqueID: String, label: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> ()
  33. funcpublicSigningKey(for: SecureMessaging.URI) async throws -> Foundation.Data
  34. funcsave(registrationStateMachine: SecureMessagingAgentCore.KDSRegistrationStateMachine) async throws -> ()
  35. funcsetupHeartbeat(nextHeartbeatInterval: Double) async throws -> ()
  36. funcsetupXPCConnection(client: SecureMessaging.XPCUtils.RegistrationClientProtocol?, clientXPCInformation: Foundation.Data, simUniqueID: String, simLabelID: String, uriSupportedState: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> ()
  37. funcsetupXPCConnection(observingClient: SecureMessaging.XPCUtils.ObservingRegistrationClientProtocol?, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> ()
  38. funcsetupXPCNotificationPoster() -> ()
  39. funcsignWithParticipantKey(nonce: Foundation.Data, for: SecureMessaging.URI) async throws -> Foundation.Data
  40. funcsignWithParticipantKey(simUniqueID: String, input: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> ()
  41. funcstart() async throws -> ()
  42. funcupdate(simUniqueID: String, oldSimLabelID: String, newSimLabelID: String, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> ()
  43. funcupdate(simUniqueID: String, simLabelID: String, supportedState: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> ()
  44. funcupdateCertificateStatus(for: SecureMessaging.URI) async throws -> ()
  45. funcupdateClientID(clientID: String, uri: SecureMessaging.URI) async throws -> ()
  46. funcupdatePushHandlerIfNeeded() async -> ()
  47. initSecureMessagingAgentCore.KDSRegistrationDaemon.__allocating_init(mlsDaemon: SecureMessagingAgentCore.MLSDaemon) -> SecureMessagingAgentCore.KDSRegistrationDaemon
  48. initSecureMessagingAgentCore.KDSRegistrationDaemon.__allocating_init() -> SecureMessagingAgentCore.KDSRegistrationDaemon
class KDSRegistrationDaemon: __C.NSObject, SecureMessaging.XPCUtils.RegistrationCollaboratorProtocol, SecureMessaging.XPCUtils.ObservingRegistrationCollaboratorProtocol {
    struct State {
        var registrationStateMachineBySimUniqueID: [Swift.String : SecureMessagingAgentCore.KDSRegistrationStateMachine]

        init(registrationStateMachineBySimUniqueID: [Swift.String : SecureMessagingAgentCore.KDSRegistrationStateMachine])
        init()
    }
    let logger: os.Logger
    let clientXPCServer: SecureMessagingAgentCore.RegistrationClientXPCServer
    let mlsDaemon: SecureMessagingAgentCore.MLSDaemon
    let mlsDaemonID: SecureMessagingAgentCore.RegClientIdentifier
    let phoneNumberProvider: SecureMessagingAgentCore.PhoneNumberProvider
    let userDefaults: SecureMessaging.SMAUserDefaults
    let pushHandler: SecureMessagingAgentCore.KDSRegistrationPushHandler
    let registrationPersister: SecureMessagingAgentCore.KDSRegistrationPersister
    let stateMachineNetworkOperator: SecureMessagingAgentCore.KDSRegistrationStateMachineNetworkOperator
    lazy var keyPackageExchanger: SecureMessagingAgentCore.KDSRegistrationKeyPackageExchanger
    let setupQueue: SecureMessaging.XPCUtils.SetupQueue
    let metricReporter: any SecureMessaging.DictionaryMetricReporter
    let heartbeatBGActivity: Swift.String
    let state: Synchronization.Mutex<SecureMessagingAgentCore.KDSRegistrationDaemon.State>

    init(mlsDaemon: SecureMessagingAgentCore.MLSDaemon)
    func start() async throws
    func setupXPCNotificationPoster()
    func setupXPCConnection(client: (any SecureMessaging.XPCUtils.RegistrationClientProtocol)?, clientXPCInformation: Foundation.Data, simUniqueID: Swift.String, simLabelID: Swift.String, uriSupportedState: Foundation.Data, completion: @escaping @Sendable (Foundation.Data?, Foundation.Data?) -> ())
    func update(simUniqueID: Swift.String, oldSimLabelID: Swift.String, newSimLabelID: Swift.String, clientXPCInformation: Foundation.Data, completion: @escaping @Sendable (Foundation.Data?, Foundation.Data?) -> ())
    func update(simUniqueID: Swift.String, simLabelID: Swift.String, supportedState: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @escaping @Sendable (Foundation.Data?, Foundation.Data?) -> ())
    func isRegistered(simUniqueID: Swift.String, context: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @escaping @Sendable (Foundation.Data?, Foundation.Data?) -> ())
    func signWithParticipantKey(simUniqueID: Swift.String, input: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @escaping @Sendable (Foundation.Data?, Foundation.Data?) -> ())
    func participantKey(simUniqueID: Swift.String, clientXPCInformation: Foundation.Data, completion: @escaping @Sendable (Foundation.Data?, Foundation.Data?) -> ())
    func participantKeyHash(simUniqueID: Swift.String, label: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @escaping @Sendable (Foundation.Data?, Foundation.Data?) -> ())
    func setupXPCConnection(observingClient: (any SecureMessaging.XPCUtils.ObservingRegistrationClientProtocol)?, clientXPCInformation: Foundation.Data, completion: @escaping @Sendable (Foundation.Data?, Foundation.Data?) -> ())
    func isRegistered(clientXPCInformation: Foundation.Data, context: Foundation.Data, completion: @escaping @Sendable (Foundation.Data?, Foundation.Data?) -> ())
    func save(registrationStateMachine: SecureMessagingAgentCore.KDSRegistrationStateMachine) async throws
    func loadRegistrationStateMachines() async
    func updatePushHandlerIfNeeded() async
    func setupHeartbeat(nextHeartbeatInterval: Swift.Double) async throws
    func heartbeatRegistration(heartbeatBGTask: __C.BGSystemTask) async
    func broadcastRegistrationState(uniqueClientIdentifier: SecureMessaging.KDSRegistration.UniqueClientIdentifier, simUniqueID: Swift.String, phoneNumber: SecureMessaging.URI?, newRegistrationState: SecureMessaging.KDSRegistration.IsRegisteredResult) async throws

    init()

    final func getCredential(for: SecureMessaging.URI) async throws -> SwiftMLS.MLS.Identity.Credential
    final func getKeyPackage(for: SecureMessaging.URI) async throws -> SecureMessaging.MLS.KeyPackageInfo
    final func loadCredential(credential: SwiftMLS.MLS.Identity.Credential, uri: SecureMessaging.URI) async throws
    final func updateClientID(clientID: Swift.String, uri: SecureMessaging.URI) async throws
    final func publicSigningKey(for: SecureMessaging.URI) async throws -> Foundation.Data
    final func getPhoneNumberInfo(for: Swift.String, needsFreshPNRToken: Swift.Bool) async throws -> SecureMessagingAgentCore.PhoneNumberInfo
    func participantKeyHash(label: SecureMessaging.KDSRegistration.ParticipantKeyHashLabel, for: SecureMessaging.URI) async throws -> Foundation.Data
    final func obtainPhoneAuthInfo(uniqueClientIdentifier: SecureMessaging.KDSRegistration.UniqueClientIdentifier, accountKey: Foundation.Data, hasAccountKeyChanged: Swift.Bool) async throws -> SecureMessaging.KDSRegistration.EncryptedRCS.PhoneAuthenticationResult
    func signWithParticipantKey(nonce: Foundation.Data, for: SecureMessaging.URI) async throws -> Foundation.Data
    final func updateCertificateStatus(for: SecureMessaging.URI) async throws
    final func clearGroupAndClientState(for: SecureMessaging.URI) async throws
    final func credentialSigningRequest(for: SecureMessaging.URI) async throws -> (any SecureMessaging.MLS.SwiftMLSRCSCSRProtocol)?
    final func noteRegistrationComplete(for: Swift.String)
    final func allRegistrationStateMachines() -> [SecureMessagingAgentCore.KDSRegistrationStateMachine]

    deinit
}