@Override
    public String getPassword(String username) throws UserNotFoundException, UnsupportedOperationException
    {
        final String storedPassword = data.get(username);
        if (storedPassword == null) {
            throw new UserNotFoundException();
        }
        return storedPassword;
    }
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