Class IPAllowListValidationResult
java.lang.Object
com.atlassian.confluence.security.websudo.IPAllowListValidationResult
This class represents the result of an IP Allow List validation for websudo action.
- Since:
- 8.9
-
Method Summary
Modifier and TypeMethodDescriptionstatic IPAllowListValidationResult
allowed()
Creates an instance of IPAllowListValidationResult where the client's IP is allowed.static IPAllowListValidationResult
Creates an instance of IPAllowListValidationResult where the client's IP is allowed.static IPAllowListValidationResult
Creates an instance of IPAllowListValidationResult where the client's IP is denied.boolean
-
Method Details
-
allowed
Creates an instance of IPAllowListValidationResult where the client's IP is allowed.- Parameters:
clientIP
- The client's IP address which was used for validationrequestIPHeader
- The request header used as source of IP address which was used for validation- Returns:
- An instance of IPAllowListValidationResult.
-
allowed
Creates an instance of IPAllowListValidationResult where the client's IP is allowed.- Returns:
- An instance of IPAllowListValidationResult.
-
denied
Creates an instance of IPAllowListValidationResult where the client's IP is denied.- Parameters:
clientIP
- The client's IP address which was used for validationrequestIPHeader
- The request header used as source of IP address which was used for validation- Returns:
- An instance of IPAllowListValidationResult.
-
isAllowed
public boolean isAllowed()- Returns:
- True if the client's IP is allowed for websudo action, false otherwise
-
getClientIP
- Returns:
- The client's IP address which was used for validation
-
getRequestIPHeader
- Returns:
- the request header used as source of IP address which was used for validation
-