Interface AuthTokenProvider
public interface AuthTokenProvider
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canProvideAuthToken
(String externalServiceId) Should return true, when the provider can provide an access token for the given externalServiceId.getAuthToken
(String externalServiceId) Returns the access token for a given external service id.
-
Method Details
-
getAuthToken
Returns the access token for a given external service id.- Parameters:
externalServiceId
- the service id to get the access token for- Returns:
- the auth token
-
canProvideAuthToken
Should return true, when the provider can provide an access token for the given externalServiceId.- Parameters:
externalServiceId
- the external service id- Returns:
- true, when the provider can provide an access token for the given service id
-