public void processLoginStart(C00PacketLoginStart packetIn) { Validate.validState(this.currentLoginState == NetHandlerLoginServer.LoginState.HELLO, "Unexpected hello packet", new Object[0]); this.loginGameProfile = packetIn.getProfile(); if (this.server.isServerInOnlineMode() && !this.networkManager.isLocalChannel()) { this.currentLoginState = NetHandlerLoginServer.LoginState.KEY; this.networkManager.sendPacket(new S01PacketEncryptionRequest(this.serverId, this.server.getKeyPair().getPublic(), this.verifyToken)); } else { this.currentLoginState = NetHandlerLoginServer.LoginState.READY_TO_ACCEPT; } }
public void handleEncryptionRequest(S01PacketEncryptionRequest p_147389_1_) { final SecretKey var2 = CryptManager.createNewSharedKey(); String var3 = p_147389_1_.func_149609_c(); PublicKey var4 = p_147389_1_.func_149608_d(); String var5 = (new BigInteger(CryptManager.getServerIdHash(var3, var4, var2))).toString(16); try { this.func_147391_c().joinServer(this.field_147394_b.getSession().func_148256_e(), this.field_147394_b.getSession().getToken(), var5); } catch (AuthenticationUnavailableException var7) { this.field_147393_d.closeChannel(new ChatComponentTranslation("disconnect.loginFailedInfo", new Object[] {new ChatComponentTranslation("disconnect.loginFailedInfo.serversUnavailable", new Object[0])})); return; } catch (InvalidCredentialsException var8) { this.field_147393_d.closeChannel(new ChatComponentTranslation("disconnect.loginFailedInfo", new Object[] {new ChatComponentTranslation("disconnect.loginFailedInfo.invalidSession", new Object[0])})); return; } catch (AuthenticationException var9) { this.field_147393_d.closeChannel(new ChatComponentTranslation("disconnect.loginFailedInfo", new Object[] {var9.getMessage()})); return; } this.field_147393_d.scheduleOutboundPacket(new C01PacketEncryptionResponse(var2, var4, p_147389_1_.func_149607_e()), new GenericFutureListener[] {new GenericFutureListener() { private static final String __OBFID = "CL_00000877"; public void operationComplete(Future p_operationComplete_1_) { NetHandlerLoginClient.this.field_147393_d.enableEncryption(var2); } } }); }
public void processLoginStart(C00PacketLoginStart p_147316_1_) { Validate.validState(this.field_147328_g == NetHandlerLoginServer.LoginState.HELLO, "Unexpected hello packet", new Object[0]); this.field_147337_i = p_147316_1_.func_149304_c(); if (this.field_147327_f.isServerInOnlineMode() && !this.field_147333_a.isLocalChannel()) { this.field_147328_g = NetHandlerLoginServer.LoginState.KEY; this.field_147333_a.scheduleOutboundPacket(new S01PacketEncryptionRequest(this.field_147334_j, this.field_147327_f.getKeyPair().getPublic(), this.field_147330_e), new GenericFutureListener[0]); } else { this.field_147328_g = NetHandlerLoginServer.LoginState.READY_TO_ACCEPT; } }
public void processLoginStart(C00PacketLoginStart p_147316_1_) { Validate.validState(this.field_147328_g == LoginState.HELLO, "Unexpected hello packet", new Object[0]); this.field_147337_i = p_147316_1_.func_149304_c(); if (this.field_147327_f.isServerInOnlineMode() && !this.field_147333_a.isLocalChannel()) { this.field_147328_g = LoginState.KEY; this.field_147333_a.scheduleOutboundPacket(new S01PacketEncryptionRequest(this.field_147334_j, this.field_147327_f.getKeyPair().getPublic(), this.field_147330_e), new GenericFutureListener[0]); } else { (new ThreadPlayerLookupUUID(this, "User Authenticator #" + field_147331_b.incrementAndGet())).start(); // Spigot } }
public void handleEncryptionRequest(S01PacketEncryptionRequest packetIn) { final SecretKey secretkey = CryptManager.createNewSharedKey(); String s = packetIn.getServerId(); PublicKey publickey = packetIn.getPublicKey(); String s1 = (new BigInteger(CryptManager.getServerIdHash(s, publickey, secretkey))).toString(16); if (this.mc.getCurrentServerData() != null && this.mc.getCurrentServerData().func_181041_d()) { try { this.getSessionService().joinServer(this.mc.getSession().getProfile(), this.mc.getSession().getToken(), s1); } catch (AuthenticationException var10) { logger.warn("Couldn\'t connect to auth servers but will continue to join LAN"); } } else { try { this.getSessionService().joinServer(this.mc.getSession().getProfile(), this.mc.getSession().getToken(), s1); } catch (AuthenticationUnavailableException var7) { this.networkManager.closeChannel(new ChatComponentTranslation("disconnect.loginFailedInfo", new Object[] {new ChatComponentTranslation("disconnect.loginFailedInfo.serversUnavailable", new Object[0])})); return; } catch (InvalidCredentialsException var8) { this.networkManager.closeChannel(new ChatComponentTranslation("disconnect.loginFailedInfo", new Object[] {new ChatComponentTranslation("disconnect.loginFailedInfo.invalidSession", new Object[0])})); return; } catch (AuthenticationException authenticationexception) { this.networkManager.closeChannel(new ChatComponentTranslation("disconnect.loginFailedInfo", new Object[] {authenticationexception.getMessage()})); return; } } this.networkManager.sendPacket(new C01PacketEncryptionResponse(secretkey, publickey, packetIn.getVerifyToken()), new GenericFutureListener < Future <? super Void >> () { public void operationComplete(Future <? super Void > p_operationComplete_1_) throws Exception { NetHandlerLoginClient.this.networkManager.enableEncryption(secretkey); } }, new GenericFutureListener[0]); }
public void handleEncryptionRequest(S01PacketEncryptionRequest p_147389_1_) { final SecretKey secretkey = CryptManager.createNewSharedKey(); String s = p_147389_1_.func_149609_c(); PublicKey publickey = p_147389_1_.func_149608_d(); String s1 = (new BigInteger(CryptManager.getServerIdHash(s, publickey, secretkey))).toString(16); boolean flag = this.field_147394_b.func_147104_D() == null || !this.field_147394_b.func_147104_D().func_152585_d(); try { this.func_147391_c().joinServer(this.field_147394_b.getSession().func_148256_e(), this.field_147394_b.getSession().getToken(), s1); } catch (AuthenticationUnavailableException authenticationunavailableexception) { if (flag) { this.field_147393_d.closeChannel(new ChatComponentTranslation("disconnect.loginFailedInfo", new Object[] {new ChatComponentTranslation("disconnect.loginFailedInfo.serversUnavailable", new Object[0])})); return; } } catch (InvalidCredentialsException invalidcredentialsexception) { if (flag) { this.field_147393_d.closeChannel(new ChatComponentTranslation("disconnect.loginFailedInfo", new Object[] {new ChatComponentTranslation("disconnect.loginFailedInfo.invalidSession", new Object[0])})); return; } } catch (AuthenticationException authenticationexception) { if (flag) { this.field_147393_d.closeChannel(new ChatComponentTranslation("disconnect.loginFailedInfo", new Object[] {authenticationexception.getMessage()})); return; } } this.field_147393_d.scheduleOutboundPacket(new C01PacketEncryptionResponse(secretkey, publickey, p_147389_1_.func_149607_e()), new GenericFutureListener[] {new GenericFutureListener() { private static final String __OBFID = "CL_00000877"; public void operationComplete(Future p_operationComplete_1_) { NetHandlerLoginClient.this.field_147393_d.enableEncryption(secretkey); } } }); }
void handleEncryptionRequest(S01PacketEncryptionRequest packetIn);
void handleEncryptionRequest(S01PacketEncryptionRequest var1);
void handleEncryptionRequest(S01PacketEncryptionRequest p_147389_1_);