android-lib/src/main/java/io/v/android/v23/KeyStoreUtil.java
/**
     * Deletes the private key from the Android KeyStore.
     * Throws an exception on an error.
     *
     * @param  alias           alias of the key in the KeyStore.
     * @throws VException      if the key could not be deleted.
    */
Deletes the private key from the Android KeyStore.
Throws an exception on an error.

@param  alias           alias of the key in the KeyStore.
@throws VException      if the key could not be deleted.
Deletes the private key from the Android KeyStore . Throws an exception on an error . @param alias alias of the key in the KeyStore . @throws VException if the key could not be deleted .
public static void deleteKeyStorePrivateKey(String alias)
            throws VException {
        try {
            final KeyStore keyStore = KeyStore.getInstance(KEYSTORE);
            keyStore.load(null);
            keyStore.deleteEntry(alias);
        } catch (KeyStoreException e) {
            throw new VException("KeyStore not initialized: " + e.getMessage());
        } catch (NoSuchAlgorithmException e) {
            throw new VException("KeyStore doesn't support the algorithm: " + e.getMessage());
        } catch (IOException e) {
            throw new VException("Error loading keystore: " + e.getMessage());
        } catch (CertificateException e) {
            throw new VException("Error loading keystore certificates: " + e.getMessage());
        }
    }
public static void deleteKeyStorePrivateKey ( String alias ) throws VException { try { final KeyStore keyStore = KeyStore . getInstance ( KEYSTORE ) ; keyStore . load ( null ) ; keyStore . deleteEntry ( alias ) ; } catch ( KeyStoreException e ) { throw new VException ( "KeyStore not initialized: " + e . getMessage ( ) ) ; } catch ( NoSuchAlgorithmException e ) { throw new VException ( "KeyStore doesn't support the algorithm: " + e . getMessage ( ) ) ; } catch ( IOException e ) { throw new VException ( "Error loading keystore: " + e . getMessage ( ) ) ; } catch ( CertificateException e ) { throw new VException ( "Error loading keystore certificates: " + e . getMessage ( ) ) ; } }
Deletes the private key from the Android KeyStore.
Deletes the private key from the Android KeyStore .