code: public boolean authenticate(HttpServletRequest pRequest) {
          String auth = pRequest.getHeader("Authorization");
          if (auth == null) {
              return false;
          }
          AuthorizationHeaderParser.Result authInfo = AuthorizationHeaderParser.parse(auth);
          return authInfo.isValid() && doAuthenticate(pRequest, authInfo);
      }
docs: Authenticate the given request
  @param pRequest request to examine
  @return true if authentication passes, false otherwise