Interface IntegrationService
@ProviderType
public interface IntegrationService
Service to communicate to Adobe I/O with regards to authentication.
Use the following command the generate the public/private keyfile:
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout private.key -out certificate_pub.crt
Use the following command the generate the public/private keyfile:
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout private.key -out certificate_pub.crt
-
Method Summary
Modifier and TypeMethodDescriptionGet the access-token used as the Authorization header.Get the api-key, can be used as the X-Api-Key headerintTimeout in milliseconds that is used in the various http-calls
-
Method Details
-
getApiKey
String getApiKey()Get the api-key, can be used as the X-Api-Key header- Returns:
- the configured api-key
-
getAccessToken
String getAccessToken()Get the access-token used as the Authorization header. This is fetched once per hour via a scheduler.- Returns:
- the access token
-
getTimeoutinMilliSeconds
int getTimeoutinMilliSeconds()Timeout in milliseconds that is used in the various http-calls- Returns:
- timeout in milliseconds
-