public class SessionController
extends java.lang.Object
| Constructor and Description |
|---|
SessionController(java.net.URL authenticationUrl,
java.lang.String apiKey,
com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate() |
java.time.Instant |
getExpiration() |
java.lang.String |
getOrCreateSession() |
java.util.Optional<java.lang.String> |
getSession() |
public SessionController(java.net.URL authenticationUrl,
java.lang.String apiKey,
com.google.gson.Gson gson)
public java.time.Instant getExpiration()
public java.util.Optional<java.lang.String> getSession()
public java.lang.String getOrCreateSession()
throws java.io.IOException
java.io.IOExceptionpublic void authenticate()
throws java.io.IOException
java.io.IOException