Class OauthAuthenticationHelper


  • public class OauthAuthenticationHelper
    extends javafx.application.Application
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javafx.application.Application

        javafx.application.Application.Parameters
    • Field Detail

      • refresh_token

        public static String refresh_token
      • expires_in

        public static String expires_in
      • access_token

        public static String access_token
    • Constructor Detail

      • OauthAuthenticationHelper

        public OauthAuthenticationHelper()
    • Method Detail

      • launchApp

        public void launchApp​(String[] args)
      • start

        public void start​(javafx.stage.Stage primaryStage)
                   throws Exception
        Parses the params and then kicks off the process by opening a mini-browser window
        Specified by:
        start in class javafx.application.Application
        Parameters:
        primaryStage - (passed in automatically)
        Throws:
        Exception
      • setAuthenticationUriVars

        public void setAuthenticationUriVars()
        Makes the call to WatchDox to get the URLs for getting the temporary code, plus the access token.
        Throws:
        IOException - i.e. JSON parsing error