@Override
    public void setPassword(String username, String password) throws UserNotFoundException, UnsupportedOperationException
    {
        final String storedPassword = data.get(username);
        if (storedPassword == null) {
            throw new UserNotFoundException();
        }
        data.put(username, password);
    }
A very basic implementation of a AuthProvider, that retains data in-memory.

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/test/java/org/jivesoftware/openfire/auth/TestAuthProvider.java