Refactor: move constants to enums, move them out from the auth class
Extract database connection and queries to a class

Also hard-wire the jndi name so we can use it from other classes later.
Refacor: Move asSet method to a Helper class
Refactor: Extract null result error code
Add OAuth VirAttributeMapper