class CredentialManagerImpl implements CredentialManager,
		Observable<KeystoreChangedEvent> {

	@Override
	public Key getKeyPairsPrivateKey(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();

		try {
			synchronized (keystore) {
				return keystore.getKey(alias, masterPassword.toCharArray());
			}
		} catch (Exception ex) {
			String exMessage = "Failed to fetch private key for the keypair from the Keystore";
			logger.error(exMessage, ex);
			throw new CMException(exMessage, ex);
		}
	}

	public  CredentialManagerImpl();

}