commit | acc835f3857c1a1bf2618fabb7307794aba5d76a | [log] [tgz] |
---|---|---|
author | Alex Klyubin <klyubin@google.com> | Tue Mar 31 15:26:56 2015 -0700 |
committer | Alex Klyubin <klyubin@google.com> | Tue Mar 31 15:29:48 2015 -0700 |
tree | 0d66974ec0f4228ca35039a34d7f19312998af48 | |
parent | 5960c3d56614830439718e93968e0c7d2727262f [diff] |
Add SecretKeyFactory backed by AndroidKeyStore. This factory provides a way to obtain information about a SecretKey backed by AndroidKeyStore. The information is provided in a form of an instance of KeyStoreKeySpec class. EXAMPLE SecretKeyFactory factory = SecretKeyFactory.getInstance( key.getAlgorithm(), "AndroidKeyStore"); KeyStoreKeySpec keySpec = factory.getKeySpec(key, KeyStoreKeySpec.class); Bug: 18088752 Change-Id: I26c9dd544f80230fe7039501eeb471eaf875452b