Class AuthSwitchPacket

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String plugin  
      private byte[] seed  
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthSwitchPacket​(java.lang.String plugin, byte[] seed)
      Authentication switch constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AuthSwitchPacket decode​(ReadableByteBuf buf)
      Decode an AUTH_SWITCH_PACKET from a MYSQL packet.
      java.lang.String getPlugin()
      Get authentication switch plugin information
      byte[] getSeed()
      Get authentication switch seed information
      static byte[] getTruncatedSeed​(byte[] seed)
      Get truncated seed (seed without ending 0x00 byte)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • plugin

        private final java.lang.String plugin
      • seed

        private final byte[] seed
    • Constructor Detail

      • AuthSwitchPacket

        public AuthSwitchPacket​(java.lang.String plugin,
                                byte[] seed)
        Authentication switch constructor
        Parameters:
        plugin - plugin requested
        seed - plugin seed
    • Method Detail

      • decode

        public static AuthSwitchPacket decode​(ReadableByteBuf buf)
        Decode an AUTH_SWITCH_PACKET from a MYSQL packet.
        Parameters:
        buf - packet
        Returns:
        Authentication switch packet.
      • getTruncatedSeed

        public static byte[] getTruncatedSeed​(byte[] seed)
        Get truncated seed (seed without ending 0x00 byte)
        Parameters:
        seed - connection seed
        Returns:
        truncated seed
      • getPlugin

        public java.lang.String getPlugin()
        Get authentication switch plugin information
        Returns:
        plugin
      • getSeed

        public byte[] getSeed()
        Get authentication switch seed information
        Returns:
        seed