class SimpleUsernamePasswordCallbackHandler extends AbstractCallbackHandler implements InitializingBean {

	@Override
	protected void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException {
		if (callback instanceof UsernameCallback) {
			UsernameCallback usernameCallback = (UsernameCallback) callback;
			usernameCallback.setUsername(username);
		} else if (callback instanceof PasswordCallback) {
			PasswordCallback passwordCallback = (PasswordCallback) callback;
			passwordCallback.setPassword(password);
		} else {
			throw new UnsupportedCallbackException(callback);
		}
	}

	public  SimpleUsernamePasswordCallbackHandler();
	public  SimpleUsernamePasswordCallbackHandler(String username, String password);

}