net.minecraft.server.dedicated.management.network

public class BearerAuthenticationHandler

extends io.netty.channel.ChannelDuplexHandler

avx
net.minecraft.server.jsonrpc.security.AuthenticationHandler
net.minecraft.class_12000
net.minecraft.server.dedicated.management.network.BearerAuthenticationHandler
net.minecraft.unmapped.C_ldlclzbo
net.minecraft.src.C_410845_

Field summary

Modifier and TypeField
private final org.slf4j.Logger
b
LOGGER
field_62832
LOGGER
f_oatmyenv
f_413658_
private static final io.netty.util.AttributeKey<Boolean>
c
AUTHENTICATED_KEY
field_63006
AUTHENTICATED_KEY
f_nzbynybg
f_413965_
private static final io.netty.util.AttributeKey<Boolean>
d
ATTR_WEBSOCKET_ALLOWED
field_63671
WEBSOCKET_AUTH_ALLOWED_KEY
f_odsimcfy
f_434225_
private static final String
e
SUBPROTOCOL_VALUE
field_63672
PROTOCOL
f_ypwsiyrn
f_434343_
private static final String
f
SUBPROTOCOL_HEADER_PREFIX
field_63673
PROTOCOL_PREFIX
f_revxvpfp
f_433470_
public static final String
a
BEARER_PREFIX
field_62831
BEARER_PREFIX
f_qgrduhmu
f_411584_
private final BearerToken
g
securityConfig
field_62833
token
f_fsotlffz
f_413668_
private final Set<String>
h
allowedOrigins
field_63674
allowedOrigins
f_lukmegog
f_433140_

Constructor summary

ModifierConstructor
public (BearerToken token, String allowedOrigins)

Method summary

Modifier and TypeMethod
public void
channelRead(io.netty.channel.ChannelHandlerContext o, Object arg1)
channelRead(io.netty.channel.ChannelHandlerContext arg0, Object arg1)
channelRead(io.netty.channel.ChannelHandlerContext arg0, Object arg1)
channelRead(io.netty.channel.ChannelHandlerContext context, Object object)
channelRead(io.netty.channel.ChannelHandlerContext p_423931_, Object arg1)
public void
write(io.netty.channel.ChannelHandlerContext o, Object o, io.netty.channel.ChannelPromise arg2)
write(io.netty.channel.ChannelHandlerContext arg0, Object arg1, io.netty.channel.ChannelPromise arg2)
write(io.netty.channel.ChannelHandlerContext arg0, Object arg1, io.netty.channel.ChannelPromise arg2)
write(io.netty.channel.ChannelHandlerContext context, Object value, io.netty.channel.ChannelPromise promise)
write(io.netty.channel.ChannelHandlerContext p_456167_, Object p_460526_, io.netty.channel.ChannelPromise arg2)
private BearerAuthenticationHandler$Result
a(io.netty.handler.codec.http.HttpRequest arg0)
performSecurityChecks(io.netty.handler.codec.http.HttpRequest arg0)
method_74511(io.netty.handler.codec.http.HttpRequest arg0)
authenticate(io.netty.handler.codec.http.HttpRequest request)
m_lkaywoai(io.netty.handler.codec.http.HttpRequest arg0)
m_416115_(io.netty.handler.codec.http.HttpRequest arg0)
private boolean
b(io.netty.handler.codec.http.HttpRequest arg0)
isAllowedOriginHeader(io.netty.handler.codec.http.HttpRequest arg0)
method_75593(io.netty.handler.codec.http.HttpRequest arg0)
isOriginAllowed(io.netty.handler.codec.http.HttpRequest request)
m_nkkczbap(io.netty.handler.codec.http.HttpRequest arg0)
m_440811_(io.netty.handler.codec.http.HttpRequest arg0)
private String
c(io.netty.handler.codec.http.HttpRequest arg0)
parseTokenInAuthorizationHeader(io.netty.handler.codec.http.HttpRequest arg0)
method_75594(io.netty.handler.codec.http.HttpRequest arg0)
getBearerToken(io.netty.handler.codec.http.HttpRequest request)
m_cecullna(io.netty.handler.codec.http.HttpRequest arg0)
m_440216_(io.netty.handler.codec.http.HttpRequest arg0)
private String
d(io.netty.handler.codec.http.HttpRequest arg0)
parseTokenInSecWebsocketProtocolHeader(io.netty.handler.codec.http.HttpRequest arg0)
method_75595(io.netty.handler.codec.http.HttpRequest arg0)
getProtocolToken(io.netty.handler.codec.http.HttpRequest request)
m_tltfjzpj(io.netty.handler.codec.http.HttpRequest arg0)
m_440939_(io.netty.handler.codec.http.HttpRequest arg0)
public boolean
a(String arg0)
isValidApiKey(String arg0)
method_74512(String arg0)
tokenMatches(String requestToken)
m_iwfuajux(String arg0)
m_416106_(String arg0)
private String
a(io.netty.channel.ChannelHandlerContext arg0)
getClientIp(io.netty.channel.ChannelHandlerContext arg0)
method_74508(io.netty.channel.ChannelHandlerContext arg0)
getHostAddress(io.netty.channel.ChannelHandlerContext context)
m_onnhylhv(io.netty.channel.ChannelHandlerContext arg0)
m_417314_(io.netty.channel.ChannelHandlerContext arg0)
private void
a(io.netty.channel.ChannelHandlerContext o, String arg1)
sendUnauthorizedResponse(io.netty.channel.ChannelHandlerContext arg0, String arg1)
method_74510(io.netty.channel.ChannelHandlerContext arg0, String arg1)
sendUnauthorizedError(io.netty.channel.ChannelHandlerContext context, String message)
m_pwqlozcf(io.netty.channel.ChannelHandlerContext arg0, String arg1)
m_419855_(io.netty.channel.ChannelHandlerContext p_427324_, String arg1)