A0SimpleKeychain

extension A0SimpleKeychain: CredentialsStorage
  • Retrieves a storage entry.

    Declaration

    Swift

    public func getEntry(forKey key: String) -> Data?

    Parameters

    key

    The key to get from the Keychain.

    Return Value

    The stored data.

  • Sets a storage entry.

    Declaration

    Swift

    public func setEntry(_ data: Data, forKey key: String) -> Bool

    Parameters

    data

    The data to be stored.

    key

    The key to store it to.

    Return Value

    If the data was stored.