This method supports extracting principals from both HttpServletRequest and EJBContext environment objects.
Subclasses may override this method to support additional environment objects.
the extracted Principal object