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 void assertPasswordCorrect ( String password ) { if ( ! isPasswordSet ( ) ) { throw new IllegalStateException ( "'" + updateConfigPasswordKey + "' is not set." ) ; } if ( ! isPasswordCorrect ( password ) ) { throw new IllegalStateException ( "Wrong password for '" + updateConfigPasswordKey + "'." ) ; } }
Validates a password. If not valid, throws a {@link IllegalStateException}.

@param password the provided password to validate
@throws IllegalStateException if the password did not match