@Test public void shouldGetCorrectIPWithoutProxy() { when(httpServletRequest.getRemoteAddr()).thenReturn("CORRECT_IP"); GraviteeAuthenticationDetails authenticationDetails = new GraviteeAuthenticationDetails(httpServletRequest); assertEquals("CORRECT_IP", authenticationDetails.getRemoteAddress()); }
@Override public String getRemoteAddress() { return this.remoteAddress; }
GraviteeAuthenticationDetails extends WebAuthenticationDetails { @Override public String getRemoteAddress() { return this.remoteAddress; } }
GraviteeAuthenticationDetails extends WebAuthenticationDetails { @Override public String getRemoteAddress() { return this.remoteAddress; } GraviteeAuthenticationDetails(HttpServletRequest request); }
GraviteeAuthenticationDetails extends WebAuthenticationDetails { @Override public String getRemoteAddress() { return this.remoteAddress; } GraviteeAuthenticationDetails(HttpServletRequest request); boolean equals(Object obj); int hashCode(); @Override String getRemoteAddress(); }
GraviteeAuthenticationDetails extends WebAuthenticationDetails { @Override public String getRemoteAddress() { return this.remoteAddress; } GraviteeAuthenticationDetails(HttpServletRequest request); boolean equals(Object obj); int hashCode(); @Override String getRemoteAddress();  }