public class DownloaderKeycloakCredentials extends AbstractDownloaderCredentials implements DownloaderCredentials
providerName, serviceUrl
Constructor and Description |
---|
DownloaderKeycloakCredentials(DownloaderAuthenticationKeycloakConfig config,
OAuth2AccessToken oauthToken,
java.lang.String userid,
long time) |
Modifier and Type | Method and Description |
---|---|
DownloaderCredentials |
createCredentials(DownloaderAuthenticationConfig config) |
DownloaderCredentials |
createCredentials(java.lang.String serviceUrl) |
java.lang.String |
getAuthorizationToken() |
DownloaderAuthenticationKeycloakConfig |
getConfig() |
long |
getTime() |
OAuth2AccessToken |
getToken() |
java.lang.String |
getUserid() |
boolean |
isAuthorizationTokenExpired() |
boolean |
isCompatible(DownloaderAuthenticationConfig config) |
boolean |
isRefreshTokenExpired() |
java.lang.String |
toString() |
getProviderName, getServiceUrl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProviderName, getServiceUrl
public DownloaderKeycloakCredentials(DownloaderAuthenticationKeycloakConfig config, OAuth2AccessToken oauthToken, java.lang.String userid, long time)
public OAuth2AccessToken getToken()
public java.lang.String getAuthorizationToken()
getAuthorizationToken
in interface DownloaderCredentials
public java.lang.String getUserid()
getUserid
in interface DownloaderCredentials
public boolean isAuthorizationTokenExpired()
isAuthorizationTokenExpired
in interface DownloaderCredentials
isAuthorizationTokenExpired
in class AbstractDownloaderCredentials
public boolean isRefreshTokenExpired()
public DownloaderAuthenticationKeycloakConfig getConfig()
public long getTime()
public java.lang.String toString()
toString
in class AbstractDownloaderCredentials
public DownloaderCredentials createCredentials(java.lang.String serviceUrl)
createCredentials
in interface DownloaderCredentials
public DownloaderCredentials createCredentials(DownloaderAuthenticationConfig config)
createCredentials
in interface DownloaderCredentials
public boolean isCompatible(DownloaderAuthenticationConfig config)
isCompatible
in interface DownloaderCredentials
isCompatible
in class AbstractDownloaderCredentials