Package emu.grasscutter.auth
Interface Authenticator<T>
- Type Parameters:
T- The response object type. Should beLoginResultJsonorComboTokenResJson
- All Known Implementing Classes:
DefaultAuthenticators.PasswordAuthenticator,DefaultAuthenticators.SessionKeyAuthenticator,DefaultAuthenticators.TokenAuthenticator
public interface Authenticator<T>
Handles username/password authentication from the client.
-
Method Summary
Modifier and TypeMethodDescriptionAttempt to authenticate the client with the provided credentials.
-
Method Details
-
authenticate
Attempt to authenticate the client with the provided credentials.- Parameters:
request- The authentication request wrapped in aAuthenticationSystem.AuthenticationRequestobject.- Returns:
- The result of the login in an object.
-