I was reading about it right now.
Basically the KeyChain class provides access to private keys and their corresponding certificate chains in credential storage. (Google says)
Here is Google's reference.
Also you can check this link.
Here you have a code sample too.
I hope it helps to you ;)