Class JsonAuthHandler

  • All Implemented Interfaces:
    java.lang.AutoCloseable, pro.gravit.launcher.NeedGarbageCollection, Reconfigurable

    public class JsonAuthHandler
    extends CachedAuthHandler
    • Field Detail

      • getUrl

        public java.net.URL getUrl
      • updateAuthUrl

        public java.net.URL updateAuthUrl
      • updateServerIdUrl

        public java.net.URL updateServerIdUrl
      • apiKey

        public java.lang.String apiKey
    • Constructor Detail

      • JsonAuthHandler

        public JsonAuthHandler()
    • Method Detail

      • updateAuth

        protected boolean updateAuth​(java.util.UUID uuid,
                                     java.lang.String username,
                                     java.lang.String accessToken)
                              throws java.io.IOException
        Specified by:
        updateAuth in class CachedAuthHandler
        Throws:
        java.io.IOException
      • updateServerID

        protected boolean updateServerID​(java.util.UUID uuid,
                                         java.lang.String serverID)
                                  throws java.io.IOException
        Specified by:
        updateServerID in class CachedAuthHandler
        Throws:
        java.io.IOException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class AuthHandler