TrolleFar
TrolleFar

Reputation: 950

Can I access the keychain on the iPhone with MonoTouch?

I have recently started to develop applications for iPhone with MonoTouch and have to store user names and passwords on the phone. I want to use the keychain for this but can't find anything in the MonoTouch documentation about it. Is it possible to use it directly with MonoTouch or will I have to write some C++/C/Objective-C code that uses the keychain and export it to MonoTouch?

Upvotes: 2

Views: 754

Answers (1)

Laurent Etiemble
Laurent Etiemble

Reputation: 27889

According to the current documentation, there is no bindings for the keychain.

Your solutions are:

  • post a request to Novell for the bindings.
  • write a .NET wrapper around the KeyChain function by accessing them through P/Invoke. The following page gives you some hint on how to do it. If you need some direction on how to provide an object-oriented wrapper for KeyChain, you can take some inspiration from the EMKeyChain library.

Upvotes: 1

Related Questions