Interface AuthTokenProvider
-
public interface AuthTokenProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canProvideAuthToken(String externalServiceId)
Should return true, when the provider can provide an access token for the given externalServiceId.AuthToken
getAuthToken(String externalServiceId)
Returns the access token for a given external service id.
-
-
-
Method Detail
-
getAuthToken
AuthToken getAuthToken(String externalServiceId)
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
boolean canProvideAuthToken(String externalServiceId)
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
-
-