Class BearerAuthenticationHandler

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler, ChannelOutboundHandler

@Sharable public class BearerAuthenticationHandler extends ChannelDuplexHandler
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/network/BearerAuthenticationHandler
intermediary net/minecraft/class_12000
official awd
  • Field Details

    • AUTHENTICATED_KEY

      private static final AttributeKey<Boolean> AUTHENTICATED_KEY
      Mappings:
      Namespace Name Mixin selector
      named AUTHENTICATED_KEY Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;AUTHENTICATED_KEY:Lio/netty/util/AttributeKey;
      intermediary field_63006 Lnet/minecraft/class_12000;field_63006:Lio/netty/util/AttributeKey;
      official c Lawd;c:Lio/netty/util/AttributeKey;
    • field_63671

      private static final AttributeKey<Boolean> field_63671
      Mappings:
      Namespace Name Mixin selector
      named field_63671 Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;field_63671:Lio/netty/util/AttributeKey;
      intermediary field_63671 Lnet/minecraft/class_12000;field_63671:Lio/netty/util/AttributeKey;
      official d Lawd;d:Lio/netty/util/AttributeKey;
    • field_63672

      private static final CharSequence field_63672
      Mappings:
      Namespace Name Mixin selector
      named field_63672 Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;field_63672:Ljava/lang/CharSequence;
      intermediary field_63672 Lnet/minecraft/class_12000;field_63672:Ljava/lang/CharSequence;
      official e Lawd;e:Ljava/lang/CharSequence;
    • field_63673

      private static final String field_63673
      Mappings:
      Namespace Name Mixin selector
      named field_63673 Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;field_63673:Ljava/lang/String;
      intermediary field_63673 Lnet/minecraft/class_12000;field_63673:Ljava/lang/String;
      official f Lawd;f:Ljava/lang/String;
    • BEARER_PREFIX

      public static final String BEARER_PREFIX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BEARER_PREFIX Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;BEARER_PREFIX:Ljava/lang/String;
      intermediary field_62831 Lnet/minecraft/class_12000;field_62831:Ljava/lang/String;
      official a Lawd;a:Ljava/lang/String;
    • LOGGER

      private final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;LOGGER:Lorg/slf4j/Logger;
      intermediary field_62832 Lnet/minecraft/class_12000;field_62832:Lorg/slf4j/Logger;
      official b Lawd;b:Lorg/slf4j/Logger;
    • token

      private final BearerToken token
      Mappings:
      Namespace Name Mixin selector
      named token Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;token:Lnet/minecraft/network/encryption/BearerToken;
      intermediary field_62833 Lnet/minecraft/class_12000;field_62833:Lnet/minecraft/class_12003;
      official g Lawd;g:Lawf;
    • field_63674

      private final Set<String> field_63674
      Mappings:
      Namespace Name Mixin selector
      named field_63674 Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;field_63674:Ljava/util/Set;
      intermediary field_63674 Lnet/minecraft/class_12000;field_63674:Ljava/util/Set;
      official h Lawd;h:Ljava/util/Set;
  • Constructor Details

    • BearerAuthenticationHandler

      public BearerAuthenticationHandler(BearerToken token, String string)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;<init>(Lnet/minecraft/network/encryption/BearerToken;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_12000;<init>(Lnet/minecraft/class_12003;Ljava/lang/String;)V
      official <init> Lawd;<init>(Lawf;Ljava/lang/String;)V
  • Method Details

    • channelRead

      public void channelRead(ChannelHandlerContext context, Object object) throws Exception
      Specified by:
      channelRead in interface ChannelInboundHandler
      Overrides:
      channelRead in class ChannelInboundHandlerAdapter
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      named channelRead Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
      intermediary channelRead Lnet/minecraft/class_12000;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
      official channelRead Lawd;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
    • write

      public void write(ChannelHandlerContext channelHandlerContext, Object object, ChannelPromise channelPromise) throws Exception
      Specified by:
      write in interface ChannelOutboundHandler
      Overrides:
      write in class ChannelDuplexHandler
      Throws:
      Exception
    • authenticate

      private BearerAuthenticationHandler.Result authenticate(HttpRequest request)
      Mappings:
      Namespace Name Mixin selector
      named authenticate Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;authenticate(Lio/netty/handler/codec/http/HttpRequest;)Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler$Result;
      intermediary method_74511 Lnet/minecraft/class_12000;method_74511(Lio/netty/handler/codec/http/HttpRequest;)Lnet/minecraft/class_12000$class_12001;
      official a Lawd;a(Lio/netty/handler/codec/http/HttpRequest;)Lawd$a;
    • method_75593

      private boolean method_75593(HttpRequest httpRequest)
      Mappings:
      Namespace Name Mixin selector
      named method_75593 Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;method_75593(Lio/netty/handler/codec/http/HttpRequest;)Z
      intermediary method_75593 Lnet/minecraft/class_12000;method_75593(Lio/netty/handler/codec/http/HttpRequest;)Z
      official b Lawd;b(Lio/netty/handler/codec/http/HttpRequest;)Z
    • method_75594

      @Nullable private @Nullable String method_75594(HttpRequest httpRequest)
      Mappings:
      Namespace Name Mixin selector
      named method_75594 Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;method_75594(Lio/netty/handler/codec/http/HttpRequest;)Ljava/lang/String;
      intermediary method_75594 Lnet/minecraft/class_12000;method_75594(Lio/netty/handler/codec/http/HttpRequest;)Ljava/lang/String;
      official c Lawd;c(Lio/netty/handler/codec/http/HttpRequest;)Ljava/lang/String;
    • method_75595

      @Nullable private @Nullable String method_75595(HttpRequest httpRequest)
      Mappings:
      Namespace Name Mixin selector
      named method_75595 Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;method_75595(Lio/netty/handler/codec/http/HttpRequest;)Ljava/lang/String;
      intermediary method_75595 Lnet/minecraft/class_12000;method_75595(Lio/netty/handler/codec/http/HttpRequest;)Ljava/lang/String;
      official d Lawd;d(Lio/netty/handler/codec/http/HttpRequest;)Ljava/lang/String;
    • tokenMatches

      public boolean tokenMatches(String requestToken)
      Mappings:
      Namespace Name Mixin selector
      named tokenMatches Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;tokenMatches(Ljava/lang/String;)Z
      intermediary method_74512 Lnet/minecraft/class_12000;method_74512(Ljava/lang/String;)Z
      official a Lawd;a(Ljava/lang/String;)Z
    • getHostAddress

      private String getHostAddress(ChannelHandlerContext context)
      Mappings:
      Namespace Name Mixin selector
      named getHostAddress Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;getHostAddress(Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/String;
      intermediary method_74508 Lnet/minecraft/class_12000;method_74508(Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/String;
      official a Lawd;a(Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/String;
    • sendUnauthorizedError

      private void sendUnauthorizedError(ChannelHandlerContext context, String message)
      Mappings:
      Namespace Name Mixin selector
      named sendUnauthorizedError Lnet/minecraft/server/dedicated/management/network/BearerAuthenticationHandler;sendUnauthorizedError(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)V
      intermediary method_74510 Lnet/minecraft/class_12000;method_74510(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)V
      official a Lawd;a(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)V