@Test public void testRedirectMatches_default() { boolean res1 = resolver.redirectMatches(pathUri, goodUri); assertThat(res1, is(false)); boolean res2 = resolver.redirectMatches(goodUri, goodUri); assertThat(res2, is(true)); }
@Override protected boolean redirectMatches(String requestedRedirect, String redirectUri) { if (isStrictMatch()) { return Strings.nullToEmpty(requestedRedirect).equals(redirectUri); } else { return super.redirectMatches(requestedRedirect, redirectUri); } }
BlacklistAwareRedirectResolver extends DefaultRedirectResolver { @Override protected boolean redirectMatches(String requestedRedirect, String redirectUri) { if (isStrictMatch()) { return Strings.nullToEmpty(requestedRedirect).equals(redirectUri); } else { return super.redirectMatches(requestedRedirect, redirectUri); } } }
BlacklistAwareRedirectResolver extends DefaultRedirectResolver { @Override protected boolean redirectMatches(String requestedRedirect, String redirectUri) { if (isStrictMatch()) { return Strings.nullToEmpty(requestedRedirect).equals(redirectUri); } else { return super.redirectMatches(requestedRedirect, redirectUri); } }  }
BlacklistAwareRedirectResolver extends DefaultRedirectResolver { @Override protected boolean redirectMatches(String requestedRedirect, String redirectUri) { if (isStrictMatch()) { return Strings.nullToEmpty(requestedRedirect).equals(redirectUri); } else { return super.redirectMatches(requestedRedirect, redirectUri); } }  @Override String resolveRedirect(String requestedRedirect, ClientDetails client); boolean isStrictMatch(); void setStrictMatch(boolean strictMatch); }
BlacklistAwareRedirectResolver extends DefaultRedirectResolver { @Override protected boolean redirectMatches(String requestedRedirect, String redirectUri) { if (isStrictMatch()) { return Strings.nullToEmpty(requestedRedirect).equals(redirectUri); } else { return super.redirectMatches(requestedRedirect, redirectUri); } }  @Override String resolveRedirect(String requestedRedirect, ClientDetails client); boolean isStrictMatch(); void setStrictMatch(boolean strictMatch);  }