Class RequestAuthProvider
java.lang.Object
pro.gravit.launchserver.auth.provider.AuthProvider
pro.gravit.launchserver.auth.provider.RequestAuthProvider
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintbooleanFields 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
-
Field Details
-
url
-
pattern
-
response
-
flagsEnabled
public boolean flagsEnabled -
usePermission
public boolean usePermission -
timeout
public int timeout
-
-
Constructor Details
-
RequestAuthProvider
public RequestAuthProvider()
-
-
Method Details
-
init
- Overrides:
initin classAuthProvider
-
auth
public AuthProviderResult auth(String login, pro.gravit.launcher.request.auth.AuthRequest.AuthPasswordInterface password, String ip) throws IOException, URISyntaxException, InterruptedExceptionDescription 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:
IOExceptionURISyntaxExceptionInterruptedException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAuthProvider
-