@Test public void shouldUseCookiesToFindTokenId() { String key = "badger"; HttpServletRequest request = mock(HttpServletRequest.class); given(request.getCookies()).willReturn(new Cookie[]{}); AuthnRequestUtils utils = new AuthnRequestUtils(key); utils.getTokenId(request); verify(request).getCookies(); }
public String getTokenId(HttpServletRequest request) { return CookieUtils.getCookieValueFromReq(request, ssoTokenCookieName); }
AuthnRequestUtils { public String getTokenId(HttpServletRequest request) { return CookieUtils.getCookieValueFromReq(request, ssoTokenCookieName); } }
AuthnRequestUtils { public String getTokenId(HttpServletRequest request) { return CookieUtils.getCookieValueFromReq(request, ssoTokenCookieName); } @Inject  AuthnRequestUtils(@Named(SSOTOKEN_COOKIE_NAME) String ssoTokenCookieName); }
AuthnRequestUtils { public String getTokenId(HttpServletRequest request) { return CookieUtils.getCookieValueFromReq(request, ssoTokenCookieName); } @Inject  AuthnRequestUtils(@Named(SSOTOKEN_COOKIE_NAME) String ssoTokenCookieName); String getTokenId(HttpServletRequest request); }
AuthnRequestUtils { public String getTokenId(HttpServletRequest request) { return CookieUtils.getCookieValueFromReq(request, ssoTokenCookieName); } @Inject  AuthnRequestUtils(@Named(SSOTOKEN_COOKIE_NAME) String ssoTokenCookieName); String getTokenId(HttpServletRequest request); static final String SSOTOKEN_COOKIE_NAME; }