Package datadog.appsec.api.blocking
Class Blocking.UserBlockingSpec
java.lang.Object
datadog.appsec.api.blocking.Blocking.UserBlockingSpec
- Enclosing class:
Blocking
-
Method Summary
Modifier and TypeMethodDescriptionvoidConvenience method that: callsshouldBlock(), and, if the result is non-null callsBlocking.tryCommitBlockingResponse(int, BlockingContentType), and throws an exception of the typeBlockingExceptionWhether the user in question should be blocked, and, if so, the details of the blocking response
-
Method Details
-
shouldBlock
Whether the user in question should be blocked, and, if so, the details of the blocking response- Returns:
- the details of the blocking response, or null if the user is not to be blocked
-
blockIfMatch
public void blockIfMatch()Convenience method that:- calls
shouldBlock(), and, if the result is non-null - calls
Blocking.tryCommitBlockingResponse(int, BlockingContentType), and - throws an exception of the type
BlockingException
- calls
-