title: Does android support .jks keystore type?
body: <p>I am trying to connect to server using keystore which is provided by server team.</p>
  
  <p>While sending service call  to server first i created KeyStore Instance by using following api</p>
  
  <pre><code>KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());
  </code></pre>
  
  <p>It’s returning the keystore type as “BKS”.             </p>
  
  <p>The Keystore what server team sent is of type “.jks”(somename.jks) So, I am getting exception “Wrong version of key store”.</p>
  
  <p>I tried by passing “JKS” to getInstance() of KeyStore by following way</p>
  
  <pre><code>KeyStore keystore = KeyStore.getInstance("JKS");       
  </code></pre>
  
  <p>But here I am getting exception “KeyStore JKS implementation not found”.</p>
  
  <p>Here is the piece of code:</p>
  
  <pre><code>KeyStore trustStore  = KeyStore.getInstance(KeyStore.getDefaultType());
  
  InputStream instream = mContext.getAssets().open("somename.jks");
  
  try {
      trustStore.load(instream, "password".toCharArray());
  } finally {
      try {
         instream.close();
      } catch(Exception ignore) {
      }
  }
  </code></pre>
  
  <p>Please guide me to solve this problem.</p>