Package net.minecraft.server.network
Class PlayerSafetyServiceTextFilter
java.lang.Object
net.minecraft.server.network.ServerTextFilter
net.minecraft.server.network.PlayerSafetyServiceTextFilter
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.server.network.ServerTextFilter
ServerTextFilter.IgnoreStrategy, ServerTextFilter.MessageEncoder, ServerTextFilter.PlayerContext, ServerTextFilter.RequestFailedException -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.microsoft.aad.msal4j.ConfidentialClientApplicationprivate final com.microsoft.aad.msal4j.ClientCredentialParametersprivate final intFields inherited from class net.minecraft.server.network.ServerTextFilter
chatIgnoreStrategy, LOGGER, workerPool -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePlayerSafetyServiceTextFilter(URL chatEndpoint, ServerTextFilter.MessageEncoder chatEncoder, ServerTextFilter.IgnoreStrategy chatIgnoreStrategy, ExecutorService workerPool, com.microsoft.aad.msal4j.ConfidentialClientApplication client, com.microsoft.aad.msal4j.ClientCredentialParameters clientParameters, Set<String> fullyFilteredEvents, int connectionReadTimeoutMs) -
Method Summary
Modifier and TypeMethodDescriptionprivate com.microsoft.aad.msal4j.IAuthenticationResultprotected intstatic ServerTextFiltercreateTextFilterFromConfig(String config) protected FilteredTextfilterText(String p_361948_, ServerTextFilter.IgnoreStrategy p_361780_, JsonObject p_364887_) protected voidsetAuthorizationProperty(HttpURLConnection p_364490_) Methods inherited from class net.minecraft.server.network.ServerTextFilter
close, createContext, createFromConfig, createWorkerPool, drainStream, getEndpoint, getEndpointFromConfig, getURLConnection, makeRequest, parseMask, requestMessageProcessing
-
Field Details
-
client
private final com.microsoft.aad.msal4j.ConfidentialClientApplication client -
clientParameters
private final com.microsoft.aad.msal4j.ClientCredentialParameters clientParameters -
fullyFilteredEvents
-
connectionReadTimeoutMs
private final int connectionReadTimeoutMs
-
-
Constructor Details
-
PlayerSafetyServiceTextFilter
private PlayerSafetyServiceTextFilter(URL chatEndpoint, ServerTextFilter.MessageEncoder chatEncoder, ServerTextFilter.IgnoreStrategy chatIgnoreStrategy, ExecutorService workerPool, com.microsoft.aad.msal4j.ConfidentialClientApplication client, com.microsoft.aad.msal4j.ClientCredentialParameters clientParameters, Set<String> fullyFilteredEvents, int connectionReadTimeoutMs)
-
-
Method Details
-
createTextFilterFromConfig
-
aquireIAuthenticationResult
private com.microsoft.aad.msal4j.IAuthenticationResult aquireIAuthenticationResult() -
setAuthorizationProperty
- Specified by:
setAuthorizationPropertyin classServerTextFilter
-
filterText
protected FilteredText filterText(String p_361948_, ServerTextFilter.IgnoreStrategy p_361780_, JsonObject p_364887_) - Specified by:
filterTextin classServerTextFilter
-
connectionReadTimeout
protected int connectionReadTimeout()- Overrides:
connectionReadTimeoutin classServerTextFilter
-