DeviceIdentifierImpl
public final class DeviceIdentifierImpl : DeviceIdentifier, Codable, Sendable
Concrete identifier storing only key pair; id is computed.
-
idAsynchronousThe unique identifier for the device, computed as a SHA-256 hash of the public key.
Declaration
Swift
public var id: String { get async throws } -
Initializes a new instance of
DeviceIdentifierImpl.Declaration
Swift
public init(deviceIdentifierKeyPair: DeviceIdentifierKeyPair, legacyIdentifier: String? = nil)Parameters
deviceIdentifierKeyPairThe key pair for the device identifier.
legacyIdentifierAn optional legacy identifier for migration purposes. Defaults to
nil.
View on GitHub