Class GemApiClient
- java.lang.Object
-
- de.gematik.ti.epa.vzd.client.invoker.ApiClient
-
- de.gematik.ti.epa.vzd.gem.invoker.GemApiClient
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class GemApiClient extends ApiClient implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description GemApiClient(IConnectionPool connectionPool)GemApiClient(java.lang.String clientId)GemApiClient(java.lang.String clientId, java.lang.String clientSecret, java.util.Map<java.lang.String,java.lang.String> parameters)GemApiClient(java.lang.String clientId, java.util.Map<java.lang.String,java.lang.String> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()AuthenticationgetAuthentication(java.lang.String authName)Get authentication for the given name.java.util.Map<java.lang.String,Authentication>getAuthentications()Get authentications (key: authentication name, value: authentication).voidvalidateToken()Checks if token is still valid and if not requests a new one-
Methods inherited from class de.gematik.ti.epa.vzd.client.invoker.ApiClient
addDefaultCookie, addDefaultHeader, buildCall, buildRequest, buildRequestBodyFormEncoding, buildRequestBodyMultipart, buildUrl, collectionPathParameterToString, deserialize, downloadFileFromResponse, escapeString, execute, execute, executeAsync, executeAsync, getBasePath, getConnectTimeout, getDateFormat, getHttpClient, getJSON, getKeyManagers, getProgressInterceptor, getReadTimeout, getSslCaCert, getTempFolderPath, getTokenEndPoint, getWriteTimeout, guessContentTypeFromFile, handleResponse, isDebugging, isJsonMime, isVerifyingSsl, parameterToPair, parameterToPairs, parameterToString, prepareDownloadFile, processCookieParams, processHeaderParams, sanitizeFilename, selectHeaderAccept, selectHeaderContentType, serialize, setAccessToken, setApiKey, setApiKeyPrefix, setBasePath, setConnectTimeout, setDateFormat, setDebugging, setHttpClient, setJSON, setKeyManagers, setLenientOnJson, setLocalDateFormat, setOffsetDateTimeFormat, setPassword, setReadTimeout, setSqlDateFormat, setSslCaCert, setTempFolderPath, setUserAgent, setUsername, setVerifyingSsl, setWriteTimeout, updateParamsForAuth
-
-
-
-
Constructor Detail
-
GemApiClient
public GemApiClient(IConnectionPool connectionPool)
-
GemApiClient
public GemApiClient(java.lang.String clientId)
-
GemApiClient
public GemApiClient(java.lang.String clientId, java.util.Map<java.lang.String,java.lang.String> parameters)
-
GemApiClient
public GemApiClient(java.lang.String clientId, java.lang.String clientSecret, java.util.Map<java.lang.String,java.lang.String> parameters)
-
-
Method Detail
-
validateToken
public void validateToken()
Checks if token is still valid and if not requests a new one
-
getAuthentications
public java.util.Map<java.lang.String,Authentication> getAuthentications()
Get authentications (key: authentication name, value: authentication).- Overrides:
getAuthenticationsin classApiClient- Returns:
- Map of authentication objects
-
getAuthentication
public Authentication getAuthentication(java.lang.String authName)
Get authentication for the given name.- Overrides:
getAuthenticationin classApiClient- Parameters:
authName- The authentication name- Returns:
- The authentication, null if not found
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-