class CredentialManagerImpl implements CredentialManager,
		Observable<KeystoreChangedEvent> {

	@Override
	public void deleteKeyPair(String alias) throws CMException {
		// Need to make sure we are initialized before we do anything else
		// as Credential Manager can be created but not initialized
		initialize();

		synchronized (keystore) {
			deleteEntry(KEYSTORE, alias);
			saveKeystore(KEYSTORE);
			multiCaster.notify(new KeystoreChangedEvent(KEYSTORE));

			/*
			 * This is now done from the KeyManager's nad TrustManager's notify
			 * methods. Update the default SSLSocketFactory used by the
			 * HttpsURLConnectionS
			 */
			// HttpsURLConnection.setDefaultSSLSocketFactory(createTavernaSSLSocketFactory());

			logger.info("updating SSLSocketFactory after deleting a keypair");
		}
	}

	public  CredentialManagerImpl();

}