public class DownloaderAuthenticationKeycloakRequester extends AbstractDownloaderAuthenticationRequester implements DownloaderAuthenticationRequester
config
Constructor and Description |
---|
DownloaderAuthenticationKeycloakRequester(DownloaderAuthenticationKeycloakConfig config) |
Modifier and Type | Method and Description |
---|---|
DownloaderAuthenticationKeycloakConfig |
getConfig() |
DownloaderKeycloakCredentials |
getCredentials() |
boolean |
requestAuthorization(java.util.concurrent.Executor executorUI) |
void |
setCredentials(DownloaderKeycloakCredentials credentials) |
void |
stopWaitingForResponse() |
JsonObject |
userInfo(OAuth20Service service) |
void |
waitForResponse(java.util.concurrent.Executor executorUI) |
getProviderName, requestAuthorization, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProviderName, requestAuthorization
public DownloaderAuthenticationKeycloakRequester(DownloaderAuthenticationKeycloakConfig config)
public DownloaderAuthenticationKeycloakConfig getConfig()
getConfig
in interface DownloaderAuthenticationRequester
getConfig
in class AbstractDownloaderAuthenticationRequester
public boolean requestAuthorization(java.util.concurrent.Executor executorUI)
requestAuthorization
in interface DownloaderAuthenticationRequester
public JsonObject userInfo(OAuth20Service service) throws java.lang.InterruptedException, java.io.IOException, java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.io.IOException
java.util.concurrent.ExecutionException
public void waitForResponse(java.util.concurrent.Executor executorUI)
public void stopWaitingForResponse()
public DownloaderKeycloakCredentials getCredentials()
getCredentials
in interface DownloaderAuthenticationRequester
public void setCredentials(DownloaderKeycloakCredentials credentials)