Class NullAuthProvider
java.lang.Object
pro.gravit.launchserver.auth.provider.AuthProvider
pro.gravit.launchserver.auth.provider.NullAuthProvider
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class pro.gravit.launchserver.auth.provider.AuthProvider
providers, srv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauth(String login, pro.gravit.launcher.request.auth.AuthRequest.AuthPasswordInterface password, String ip)Verifies the username and passwordvoidclose()voidsetBackend(AuthProvider provider)Methods inherited from class pro.gravit.launchserver.auth.provider.AuthProvider
authError, getDetails, getFirstAuthType, getSecondAuthType, init, preAuth, registerProviders
-
Constructor Details
-
NullAuthProvider
public NullAuthProvider()
-
-
Method Details
-
auth
public AuthProviderResult auth(String login, pro.gravit.launcher.request.auth.AuthRequest.AuthPasswordInterface password, String ip) throws ExceptionDescription 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:
Exception- Throws an exceptionAuthExceptionHookExceptionif the verification script returned a meaningful error In other cases, throwing an exception indicates a serious error
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAuthProvider- Throws:
IOException
-
setBackend
-