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, getServiceUrlclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProviderName, getServiceUrlpublic DownloaderKeycloakCredentials(DownloaderAuthenticationKeycloakConfig config, OAuth2AccessToken oauthToken, java.lang.String userid, long time)
public OAuth2AccessToken getToken()
public java.lang.String getAuthorizationToken()
getAuthorizationToken in interface DownloaderCredentialspublic java.lang.String getUserid()
getUserid in interface DownloaderCredentialspublic boolean isAuthorizationTokenExpired()
isAuthorizationTokenExpired in interface DownloaderCredentialsisAuthorizationTokenExpired in class AbstractDownloaderCredentialspublic boolean isRefreshTokenExpired()
public DownloaderAuthenticationKeycloakConfig getConfig()
public long getTime()
public java.lang.String toString()
toString in class AbstractDownloaderCredentialspublic DownloaderCredentials createCredentials(java.lang.String serviceUrl)
createCredentials in interface DownloaderCredentialspublic DownloaderCredentials createCredentials(DownloaderAuthenticationConfig config)
createCredentials in interface DownloaderCredentialspublic boolean isCompatible(DownloaderAuthenticationConfig config)
isCompatible in interface DownloaderCredentialsisCompatible in class AbstractDownloaderCredentials