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.ConfidentialClientApplication
private final com.microsoft.aad.msal4j.ClientCredentialParameters
private final int
Fields inherited from class net.minecraft.server.network.ServerTextFilter
chatIgnoreStrategy, LOGGER, workerPool
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PlayerSafetyServiceTextFilter
(URL p_364655_, ServerTextFilter.MessageEncoder p_363695_, ServerTextFilter.IgnoreStrategy p_364609_, ExecutorService p_362703_, com.microsoft.aad.msal4j.ConfidentialClientApplication p_364360_, com.microsoft.aad.msal4j.ClientCredentialParameters p_362037_, Set<String> p_361204_, int p_364088_) -
Method Summary
Modifier and TypeMethodDescriptionprivate com.microsoft.aad.msal4j.IAuthenticationResult
protected int
static ServerTextFilter
createTextFilterFromConfig
(String p_364386_) protected FilteredText
filterText
(String p_361948_, ServerTextFilter.IgnoreStrategy p_361780_, com.google.gson.JsonObject p_364887_) protected void
setAuthorizationProperty
(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 p_364655_, ServerTextFilter.MessageEncoder p_363695_, ServerTextFilter.IgnoreStrategy p_364609_, ExecutorService p_362703_, com.microsoft.aad.msal4j.ConfidentialClientApplication p_364360_, com.microsoft.aad.msal4j.ClientCredentialParameters p_362037_, Set<String> p_361204_, int p_364088_)
-
-
Method Details
-
createTextFilterFromConfig
-
aquireIAuthenticationResult
private com.microsoft.aad.msal4j.IAuthenticationResult aquireIAuthenticationResult() -
setAuthorizationProperty
- Specified by:
setAuthorizationProperty
in classServerTextFilter
-
filterText
protected FilteredText filterText(String p_361948_, ServerTextFilter.IgnoreStrategy p_361780_, com.google.gson.JsonObject p_364887_) - Specified by:
filterText
in classServerTextFilter
-
connectionReadTimeout
protected int connectionReadTimeout()- Overrides:
connectionReadTimeout
in classServerTextFilter
-