Class MySQLAuthProvider
java.lang.Object
pro.gravit.launchserver.auth.provider.AuthProvider
pro.gravit.launchserver.auth.provider.MySQLAuthProvider
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class pro.gravit.launchserver.auth.provider.AuthProvider
providers, srv -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class pro.gravit.launchserver.auth.provider.AuthProvider
authError, getDetails, getFirstAuthType, getSecondAuthType, preAuth, registerProviders
-
Constructor Details
-
MySQLAuthProvider
public MySQLAuthProvider()
-
-
Method Details
-
init
- Overrides:
initin classAuthProvider
-
auth
public AuthProviderResult auth(String login, pro.gravit.launcher.request.auth.AuthRequest.AuthPasswordInterface password, String ip) throws SQLException, AuthExceptionDescription copied from class:AuthProviderVerifies the username and password- Specified by:
authin classAuthProvider- Parameters:
login- user loginpassword- user passwordip- user ip- Returns:
- player privileges, effective username and authorization token
- Throws:
SQLExceptionAuthException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAuthProvider
-