| InvalidIPAddressException | Line # 8 | 1 | 1 | 100% |
1.0
|
| (6) | |||
| 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.0
|
com.atlassian.security.auth.trustedapps.filter.TestTrustedAppAuthenticatorImpl.testBadRequestIp
com.atlassian.security.auth.trustedapps.filter.TestTrustedAppAuthenticatorImpl.testBadRequestIp
|
1 PASS | |
|
1.0
|
com.atlassian.security.auth.trustedapps.TestDefaultRequestMatcher.testBadIpAddress
com.atlassian.security.auth.trustedapps.TestDefaultRequestMatcher.testBadIpAddress
|
1 PASS | |
|
1.0
|
com.atlassian.security.auth.trustedapps.filter.TestTrustedApplicationsFilterAuthenticate.testBadRequestIp
com.atlassian.security.auth.trustedapps.filter.TestTrustedApplicationsFilterAuthenticate.testBadRequestIp
|
1 PASS | |
| 1 | package com.atlassian.security.auth.trustedapps; | |
| 2 | ||
| 3 | import com.atlassian.security.auth.trustedapps.TransportErrorMessage.Code; | |
| 4 | ||
| 5 | /** | |
| 6 | * Thrown when the IP address of the client does not match the allowed IP addresses | |
| 7 | */ | |
| 8 | public abstract class InvalidIPAddressException extends InvalidRequestException | |
| 9 | { | |
| 10 | 6 |
public InvalidIPAddressException(Code code, String address) |
| 11 | { | |
| 12 | 6 | super(new TransportErrorMessage(code, "Request not allowed from IP address: {0}", address)); |
| 13 | } | |
| 14 | } | |
|
||||||||||