DeviceIdentifierConfiguration

public struct DeviceIdentifierConfiguration : Sendable

Configuration for device identifier, including key size and keychain account. This configuration is used to initialize the device identifier and can be customized if needed.

  • RSA key size in bits

    Declaration

    Swift

    public let keySize: Int
  • Keychain account identifier

    Declaration

    Swift

    public let keychainAccount: String
  • Whether to use encryption for keychain storage

    Declaration

    Swift

    public let useEncryption: Bool
  • Optional keychain access group used by the legacy SDK for migration purposes. If your app used a custom keychain access group with the legacy FRAuth SDK, specify it here to enable migration of the legacy device identifier.

    Declaration

    Swift

    public let legacyKeychainAccessGroup: String?
  • Default configuration

    Declaration

    Swift

    public static let `default`: DeviceIdentifierConfiguration
  • High security configuration with larger key size

    Declaration

    Swift

    public static let highSecurity: DeviceIdentifierConfiguration
  • Declaration

    Swift

    public init(keySize: Int, keychainAccount: String, useEncryption: Bool = true, legacyKeychainAccessGroup: String? = nil)