Package org.geysermc.geyser.util
Class LoginEncryptionUtils
java.lang.Object
org.geysermc.geyser.util.LoginEncryptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuildAndShowConsentWindow(GeyserSession session) Build a window that explains the user's credentials will be saved to the system.static voidbuildAndShowLoginWindow(GeyserSession session) static voidbuildAndShowMicrosoftCodeWindow(GeyserSession session, net.raphimc.minecraftauth.msa.model.MsaDeviceCode msCode) Shows the code that a user must input into their browserstatic voidstatic booleanencryptPlayerConnection(GeyserSession session, org.cloudburstmc.protocol.bedrock.packet.LoginPacket loginPacket)
-
Constructor Details
-
LoginEncryptionUtils
public LoginEncryptionUtils()
-
-
Method Details
-
encryptPlayerConnection
public static boolean encryptPlayerConnection(GeyserSession session, org.cloudburstmc.protocol.bedrock.packet.LoginPacket loginPacket) - Returns:
- whether the client must answer the encryption handshake before its login can be trusted
-
buildAndShowLoginWindow
-
buildAndShowConsentWindow
Build a window that explains the user's credentials will be saved to the system. -
buildAndShowTokenExpiredWindow
-
buildAndShowMicrosoftCodeWindow
public static void buildAndShowMicrosoftCodeWindow(GeyserSession session, net.raphimc.minecraftauth.msa.model.MsaDeviceCode msCode) Shows the code that a user must input into their browser
-