public static boolean isKeyEntry(String alias,KeyStore keyStore) throws KeyStoreException {
  return keyStore.isKeyEntry(alias) && (keyStore.getCertificateChain(alias) == null || keyStore.getCertificateChain(alias).length == 0);
}

public static boolean isKeyEntry ( String alias , KeyStore keyStore ) throws KeyStoreException { return keyStore . isKeyEntry ( alias ) && ( keyStore . getCertificateChain ( alias ) == null || keyStore . getCertificateChain ( alias ) . length == 0 ) ; }
is the named entry in the keystore a key entry ?
