list certificate stored in user credentials
<p>In Android 7 Nougat, user installed certificate goes to "User credentials" instead of "Trusted credentials"(which consists of system credential &amp; user credential).</p>

<p>I used to access "Trusted credentials" by:</p>

<pre><code>KeyStore keystore = KeyStore.getInstance("AndroidCAStore");
</code></pre>

<p>through the above code I can then access system &amp; user trusted credentials.</p>

<p>But now, in Android 7, user installed certificate goes to a separate place called "User credentials" under <code>Settings --&gt; Security --&gt; User credentials</code>. </p>

<p>My question is how can I programmatically list the credentials inside <code>User credentials</code> in Android 7?</p>