Interface AuthTokenProvider


public interface AuthTokenProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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

      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