class CredentialManagerImpl implements CredentialManager,
		Observable<KeystoreChangedEvent> {

	@Override
	public String addUsernameAndPasswordForService(
			UsernamePassword usernamePassword, URI serviceURI)
			throws CMException {
		// Need to make sure we are initialized before we do anything else
		// as Credential Manager can be created but not initialized
		initialize();

		String uriString = serviceURI.toASCIIString();
		String alias = saveUsernameAndPasswordForService(
				usernamePassword.getUsername(),
				String.valueOf(usernamePassword.getPassword()), uriString);
		return alias;
	}

	public  CredentialManagerImpl();

}