Package de.florianmichael.classic4j.api
Interface LoginProcessHandler
public interface LoginProcessHandler
This interface is used to handle the login process. This is used by the
ClassiCubeHandler.-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleException(Throwable throwable) Handles the failed login.voidHandles the MFA process.voidhandleSuccessfulLogin(CCAccount account) Handles the successful login.
-
Method Details
-
handleMfa
Handles the MFA process. This is called when the account has MFA enabled. The user should be prompted to enter the MFA code.- Parameters:
account- The account that has MFA enabled.
-
handleSuccessfulLogin
Handles the successful login. This is called when the login was successful.- Parameters:
account- The account that was used for the login.
-
handleException
Handles the failed login. This is called when the login failed.- Parameters:
throwable- The throwable that caused the login to fail.
-