class ConfigurationPasswordChecker {

	public void assertPasswordCorrect(String password) {
		if (!isPasswordSet()) {
			throw new IllegalStateException("'" + updateConfigPasswordKey + "' is not set.");
		}

		if (!isPasswordCorrect(password)) {
			throw new IllegalStateException("Wrong password for '" + updateConfigPasswordKey + "'.");
		}
	}

	public  ConfigurationPasswordChecker(ConfigurationRegistry configurationRegistry, String updateConfigPasswordKey);

}