Class OauthAuthenticationHelper
- java.lang.Object
-
- javafx.application.Application
-
- com.blackberry.workspaces.api.sdk.OauthAuthenticationHelper
-
public class OauthAuthenticationHelper extends javafx.application.Application
-
-
Field Summary
Fields Modifier and Type Field Description static String
access_token
static String
expires_in
static String
refresh_token
-
Constructor Summary
Constructors Constructor Description OauthAuthenticationHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
launchApp(String[] args)
void
setAuthenticationUriVars()
Makes the call to WatchDox to get the URLs for getting the temporary code, plus the access token.void
start(javafx.stage.Stage primaryStage)
Parses the params and then kicks off the process by opening a mini-browser window
-
-
-
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 classjavafx.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
-
-