Class CCAuthenticationTokenRequest
java.lang.Object
de.florianmichael.classic4j.request.classicube.auth.CCAuthenticationTokenRequest
This class is used to request a new authentication token from the ClassiCube server list. It is used by
ClassiCubeHandler.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsend(HttpClient client, CCAccount account) Sends a request to the ClassiCube server list to get a new authentication token.
-
Constructor Details
-
CCAuthenticationTokenRequest
public CCAuthenticationTokenRequest()
-
-
Method Details
-
send
public static CompletableFuture<CCAuthenticationResponse> send(HttpClient client, CCAccount account) Sends a request to the ClassiCube server list to get a new authentication token.- Parameters:
account- The account to get the token for.- Returns:
- The response.
-