@Override
    public void authenticate(String username, String password) throws UnauthorizedException, ConnectionException, InternalUnauthenticatedException
    {
        final String storedPassword = data.get(username);
        if (storedPassword == null || !storedPassword.equals(password)) {
            throw new UnauthorizedException();
        }
    }
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