@ Override public User getUser ( String username ) throws AuthenticationException { // Find our user String user = file_store . getProperty ( username ) ; if ( user == null ) { throw new AuthenticationException ( "User '" + username + "' not found." ) ; } // Purge any old data and init() user_object = new InternalUser ( ) ; user_object . init ( username ) ; // before returning return user_object ; }
Returns a User object if the implementing class supports user queries without authentication .