That's a good idea, but I would add all possible methods: setUsername, getUsername, setPassword, getPassword, setAuthMode, getAuthMode.