/** * Get the hosted domain for this request. * * @return The domain, or {@code null} if no domain was found */ public String getAuthType() { return AuthInfoUtil.getAuthTypeFromRequest(req); } }
/** * Get the hosted domain for this request. * * @return The domain, or {@code null} if no domain was found */ public String getAuthType() { return AuthInfoUtil.getAuthTypeFromRequest(req); } }
/** * Get the hosted domain for this request. * * @return The domain, or {@code null} if no domain was found */ public String getAuthType() { return AuthInfoUtil.getAuthTypeFromRequest(req); } }
@Test public void testAuthType() throws Exception { HttpServletRequest req = new FakeHttpServletRequest(); AuthInfoUtil.setAuthTypeForRequest(req, "FakeAuth"); assertEquals("FakeAuth", AuthInfoUtil.getAuthTypeFromRequest(req)); } }
@Test public void testAuthType() throws Exception { HttpServletRequest req = new FakeHttpServletRequest(); AuthInfoUtil.setAuthTypeForRequest(req, "FakeAuth"); assertEquals("FakeAuth", AuthInfoUtil.getAuthTypeFromRequest(req)); } }
@Test public void testAuthType() throws Exception { HttpServletRequest req = new FakeHttpServletRequest(); AuthInfoUtil.setAuthTypeForRequest(req, "FakeAuth"); assertEquals("FakeAuth", AuthInfoUtil.getAuthTypeFromRequest(req)); } }