net.minecraft.server.jsonrpc.security

public class AuthenticationHandler

extends io.netty.channel.ChannelInboundHandlerAdapter

avp
net.minecraft.server.jsonrpc.security.AuthenticationHandler
net.minecraft.class_12000
net.minecraft.server.dedicated.management.network.BearerAuthenticationHandler
net.minecraft.src.C_410845_
net.minecraft.server.jsonrpc.security.AuthenticationHandler

Field summary

Modifier and TypeField
private final org.slf4j.Logger
c
LOGGER
field_62832
LOGGER
f_413658_
private static final io.netty.util.AttributeKey<Boolean>
d
AUTHENTICATED_KEY
field_63006
AUTHENTICATED_KEY
f_413965_
public static final String
a
AUTH_HEADER
field_62830
AUTHORIZATION_HEADER
f_413905_
public static final String
b
BEARER_PREFIX
field_62831
BEARER_PREFIX
f_411584_
private final SecurityConfig
e
securityConfig
field_62833
token
f_413668_

Constructor summary

ModifierConstructor
public (SecurityConfig token)

Method summary

Modifier and TypeMethod
public void
channelRead(io.netty.channel.ChannelHandlerContext arg0, 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)
private AuthenticationHandler$SecurityCheckResult
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_416115_(io.netty.handler.codec.http.HttpRequest arg0)
private boolean
b(io.netty.handler.codec.http.HttpRequest arg0)
validateAuthentication(io.netty.handler.codec.http.HttpRequest arg0)
method_74513(io.netty.handler.codec.http.HttpRequest arg0)
isAuthenticated(io.netty.handler.codec.http.HttpRequest request)
m_418562_(io.netty.handler.codec.http.HttpRequest arg0)
public boolean
a(String arg0)
isValidApiKey(String arg0)
method_74512(String arg0)
tokenMatches(String requestToken)
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_417314_(io.netty.channel.ChannelHandlerContext arg0)
private void
a(io.netty.channel.ChannelHandlerContext arg0, 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_419855_(io.netty.channel.ChannelHandlerContext p_427324_, String arg1)