public static Profile getProfile ( HttpServletRequest request ) { Authentication auth = getAuthentication ( request ) ; if ( auth != null ) { return auth . getProfile ( ) ; } else { return null ; } }
Returns the profile from authentication attribute from the specified request .