@PublicAPI public interface SchedulerAuthenticationInterface extends Authentication
Before using the scheduler communication interface, you have to connect it using a login/password using this interface.
You can get this interface by using the scheduler connection
|Modifier and Type||Method and Description|
Try to login a client to the scheduler sending login and password in an encrypted state.
If the login or/and password do not match an allowed one, it will throw an LoginException.
If the authentication succeed, it will return a new scheduler API.
This authentication just requires the client to be known by the System.
Note that you can use the provided
authenticate, getHostURL, getJMXConnectorURL, getJMXConnectorURL, getPrivateKey, getPublicKey, isActivated
Scheduler login(Credentials cred) throws LoginException, AlreadyConnectedException
SchedulerAuthenticationGUIHelperclass to display a graphical interface that will ask the URL, login and password.
cred- Object encapsulating encrypted credentials, and information on how to decrypt them
Schedulerinterface if this client is allowed to access the scheduler.
LoginException- thrown if this user/password does not match any entries.
AlreadyConnectedException- thrown if this client is already connected to the Scheduler.