@PublicAPI public class SchedulerAuthenticationGUIHelper extends Object
Use one of the two provided method to connect the scheduler as an administrator or as a user. This class will request username and password to the user using the graphical interface.
Modifier and Type | Method and Description |
---|---|
static Scheduler |
login(String schedulerURL)
This method will log a client to the scheduler by requesting his URL, username and password from a
graphical interface.
|
public static Scheduler login(String schedulerURL) throws LoginException, SchedulerException
schedulerURL
- The default URL of the scheduler to connectScheduler
if logging successful.
If the username is empty or if the user cancel the authentication, this method will return null.LoginException
- If a problem occurs while logging the user.SchedulerException
- If a problem occurs at scheduler level.