| InvalidXForwardedForAddressException | Line # 8 | 1 | 1 | 100% |
1.0
|
| (3) | |||
| Result | |||
|
1.0
|
com.atlassian.security.auth.trustedapps.TestDefaultRequestMatcher.testBadIpAddressInXForwardedFor
com.atlassian.security.auth.trustedapps.TestDefaultRequestMatcher.testBadIpAddressInXForwardedFor
|
1 PASS | |
|
1.0
|
com.atlassian.security.auth.trustedapps.filter.TestTrustedAppAuthenticatorImpl.testBadXForwardIp
com.atlassian.security.auth.trustedapps.filter.TestTrustedAppAuthenticatorImpl.testBadXForwardIp
|
1 PASS | |
|
1.0
|
com.atlassian.security.auth.trustedapps.filter.TestTrustedApplicationsFilterAuthenticate.testBadXForwardIp
com.atlassian.security.auth.trustedapps.filter.TestTrustedApplicationsFilterAuthenticate.testBadXForwardIp
|
1 PASS | |
| 1 | package com.atlassian.security.auth.trustedapps; | |
| 2 | ||
| 3 | import com.atlassian.security.auth.trustedapps.TransportErrorMessage.Code; | |
| 4 | ||
| 5 | /** | |
| 6 | * Thrown if an IP address in an X-Forwarded-For header doesn't match | |
| 7 | */ | |
| 8 | public class InvalidXForwardedForAddressException extends InvalidIPAddressException | |
| 9 | { | |
| 10 | 3 |
public InvalidXForwardedForAddressException(String ipAddress) |
| 11 | { | |
| 12 | 3 | super(Code.BAD_XFORWARD_IP, ipAddress); |
| 13 | } | |
| 14 | } | |
|
||||||||||