DataConvertible

public protocol DataConvertible

DataConvertible defines a protocol a type must satisfy in order to be used in a Keychain operation; ie Stored, Retrieved, etc…

  • Converts Data retrieved from the Keychain into a KeychainStorable Type

    Declaration

    Swift

    init?(data: Data)
  • Converts a KeychainStorable Type into Data to be stored in the Keychain

    Declaration

    Swift

    var data: Data { get }