SwiftclassSecureMessagingAgentCore
KDSRegistrationDaemon
class SecureMessagingAgentCore.KDSRegistrationDaemon
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
Members 48
- deinit
deinit - field
let clientXPCServer: SecureMessagingAgentCore.RegistrationClientXPCServer - field
let heartbeatBGActivity: String - field
lazy var keyPackageExchanger: SecureMessagingAgentCore.KDSRegistrationKeyPackageExchanger? - field
let logger: os.Logger - field
let metricReporter: SecureMessaging.DictionaryMetricReporter - field
let mlsDaemon: SecureMessagingAgentCore.MLSDaemon - field
let mlsDaemonID: SecureMessagingAgentCore.RegClientIdentifier - field
let phoneNumberProvider: SecureMessagingAgentCore.PhoneNumberProvider - field
let pushHandler: SecureMessagingAgentCore.KDSRegistrationPushHandler - field
let registrationPersister: SecureMessagingAgentCore.KDSRegistrationPersister - field
let setupQueue: SecureMessaging.XPCUtils.SetupQueue - field
let state: Synchronization.Mutex<SecureMessagingAgentCore.KDSRegistrationDaemon.State> - field
let stateMachineNetworkOperator: SecureMessagingAgentCore.KDSRegistrationStateMachineNetworkOperator - field
let userDefaults: SecureMessaging.SMAUserDefaults - func
allRegistrationStateMachines() -> [SecureMessagingAgentCore.KDSRegistrationStateMachine] - func
broadcastRegistrationState(uniqueClientIdentifier: SecureMessaging.KDSRegistration.UniqueClientIdentifier, simUniqueID: String, phoneNumber: SecureMessaging.URI?, newRegistrationState: SecureMessaging.KDSRegistration.IsRegisteredResult) async throws -> () - func
clearGroupAndClientState(for: SecureMessaging.URI) async throws -> () - func
credentialSigningRequest(for: SecureMessaging.URI) async throws -> SecureMessaging.MLS.SwiftMLSRCSCSRProtocol? - func
getCredential(for: SecureMessaging.URI) async throws -> SwiftMLS.MLS.Identity.Credential - func
getKeyPackage(for: SecureMessaging.URI) async throws -> SecureMessaging.MLS.KeyPackageInfo - func
getPhoneNumberInfo(for: String, needsFreshPNRToken: Bool) async throws -> SecureMessagingAgentCore.PhoneNumberInfo - func
heartbeatRegistration(heartbeatBGTask: BGSystemTask) async -> () - func
isRegistered(simUniqueID: String, context: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> () - func
isRegistered(clientXPCInformation: Foundation.Data, context: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> () - func
loadCredential(credential: SwiftMLS.MLS.Identity.Credential, uri: SecureMessaging.URI) async throws -> () - func
loadRegistrationStateMachines() async -> () - func
noteRegistrationComplete(for: String) -> () - func
obtainPhoneAuthInfo(uniqueClientIdentifier: SecureMessaging.KDSRegistration.UniqueClientIdentifier, accountKey: Foundation.Data, hasAccountKeyChanged: Bool) async throws -> SecureMessaging.KDSRegistration.EncryptedRCS.PhoneAuthenticationResult - func
participantKey(simUniqueID: String, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> () - func
participantKeyHash(label: SecureMessaging.KDSRegistration.ParticipantKeyHashLabel, for: SecureMessaging.URI) async throws -> Foundation.Data - func
participantKeyHash(simUniqueID: String, label: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> () - func
publicSigningKey(for: SecureMessaging.URI) async throws -> Foundation.Data - func
save(registrationStateMachine: SecureMessagingAgentCore.KDSRegistrationStateMachine) async throws -> () - func
setupHeartbeat(nextHeartbeatInterval: Double) async throws -> () - func
setupXPCConnection(client: SecureMessaging.XPCUtils.RegistrationClientProtocol?, clientXPCInformation: Foundation.Data, simUniqueID: String, simLabelID: String, uriSupportedState: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> () - func
setupXPCConnection(observingClient: SecureMessaging.XPCUtils.ObservingRegistrationClientProtocol?, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> () - func
setupXPCNotificationPoster() -> () - func
signWithParticipantKey(nonce: Foundation.Data, for: SecureMessaging.URI) async throws -> Foundation.Data - func
signWithParticipantKey(simUniqueID: String, input: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> () - func
start() async throws -> () - func
update(simUniqueID: String, oldSimLabelID: String, newSimLabelID: String, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> () - func
update(simUniqueID: String, simLabelID: String, supportedState: Foundation.Data, clientXPCInformation: Foundation.Data, completion: @Sendable (Foundation.Data?, Foundation.Data?) -> ()) -> () - func
updateCertificateStatus(for: SecureMessaging.URI) async throws -> () - func
updateClientID(clientID: String, uri: SecureMessaging.URI) async throws -> () - func
updatePushHandlerIfNeeded() async -> () - init
SecureMessagingAgentCore.KDSRegistrationDaemon.__allocating_init(mlsDaemon: SecureMessagingAgentCore.MLSDaemon) -> SecureMessagingAgentCore.KDSRegistrationDaemon - init
SecureMessagingAgentCore.KDSRegistrationDaemon.__allocating_init() -> SecureMessagingAgentCore.KDSRegistrationDaemon
Header
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 }