net.minecraft.server.jsonrpc.security

public class AuthenticationHandler

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.src.C_410845_
net.minecraft.server.jsonrpc.security.AuthenticationHandler

字段概要

修饰符与类型字段
private final org.slf4j.Logger
b
LOGGER
field_62832
LOGGER
f_413658_
private static final io.netty.util.AttributeKey<Boolean>
c
AUTHENTICATED_KEY
field_63006
AUTHENTICATED_KEY
f_413965_
private static final io.netty.util.AttributeKey<Boolean>
d
ATTR_WEBSOCKET_ALLOWED
field_63671
WEBSOCKET_AUTH_ALLOWED_KEY
f_434225_
private static final String
e
SUBPROTOCOL_VALUE
field_63672
PROTOCOL
f_434343_
private static final String
f
SUBPROTOCOL_HEADER_PREFIX
field_63673
PROTOCOL_PREFIX
f_433470_
public static final String
a
BEARER_PREFIX
field_62831
BEARER_PREFIX
f_411584_
private final SecurityConfig
g
securityConfig
field_62833
token
f_413668_
private final Set<String>
h
allowedOrigins
field_63674
allowedOrigins
f_433140_

构造函数概要

修饰符构造函数
public (SecurityConfig token, String allowedOrigins)

方法概要

修饰符与类型方法
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)
public void
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 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 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)
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_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_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_440939_(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)