Package com.botbye
Class Botbye
- java.lang.Object
-
- com.botbye.Botbye
-
public class Botbye extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESULT_HEADER
-
Constructor Summary
Constructors Constructor Description Botbye(BotbyeConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbypassResult()Returns pre-computed bypass result (base64 JSON withbypass_bot_validation = true).java.lang.StringencodeResult(BotbyeEvaluateResponse response)Encodes evaluate response as base64 JSON for propagation to Level 2 viaRESULT_HEADER.BotbyeEvaluateResponseevaluate(BotbyeEvent event)java.util.concurrent.CompletableFuture<BotbyeEvaluateResponse>evaluateAsync(BotbyeEvent event)BotbyePhishingResponsefetchImage(java.lang.String origin)BotbyePhishingResponsefetchImage(java.lang.String origin, java.lang.String imageId)voidsetConf(BotbyeConfig config)voidsetPhishingConf(BotbyePhishingConfig config)
-
-
-
Field Detail
-
RESULT_HEADER
public static final java.lang.String RESULT_HEADER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Botbye
public Botbye(BotbyeConfig config)
-
-
Method Detail
-
setConf
public void setConf(BotbyeConfig config)
-
setPhishingConf
public void setPhishingConf(BotbyePhishingConfig config)
-
evaluate
public BotbyeEvaluateResponse evaluate(BotbyeEvent event)
-
evaluateAsync
public java.util.concurrent.CompletableFuture<BotbyeEvaluateResponse> evaluateAsync(BotbyeEvent event)
-
encodeResult
public java.lang.String encodeResult(BotbyeEvaluateResponse response)
Encodes evaluate response as base64 JSON for propagation to Level 2 viaRESULT_HEADER. Mirrors openrestyM.encodeResult().
-
bypassResult
public java.lang.String bypassResult()
Returns pre-computed bypass result (base64 JSON withbypass_bot_validation = true). Use when request should not be validated (excluded URI, service token, etc). Mirrors openrestyM.propagateBypass().
-
fetchImage
public BotbyePhishingResponse fetchImage(java.lang.String origin)
-
fetchImage
public BotbyePhishingResponse fetchImage(java.lang.String origin, java.lang.String imageId)
-
-