Class VampireSquidAccessTokenProvider

java.lang.Object
org.mbari.vars.vampiresquid.sdk.VampireSquidAccessTokenProvider
All Implemented Interfaces:
com.microsoft.kiota.authentication.AccessTokenProvider

public class VampireSquidAccessTokenProvider extends Object implements com.microsoft.kiota.authentication.AccessTokenProvider
  • Constructor Details

    • VampireSquidAccessTokenProvider

      public VampireSquidAccessTokenProvider(String authUrl, String apiKey)
  • Method Details

    • baseUrltoAllowedHost

      public static String baseUrltoAllowedHost(String baseUrl)
    • doTokenRequest

      public String doTokenRequest(URI uri) throws Exception
      Throws:
      Exception
    • authorize

      public String authorize()
    • getAuthorizationToken

      @NotNull public String getAuthorizationToken(@NotNull URI uri, @Nullable Map<String,Object> additionalAuthenticationContext)
      Specified by:
      getAuthorizationToken in interface com.microsoft.kiota.authentication.AccessTokenProvider
    • getAllowedHostsValidator

      @NotNull public com.microsoft.kiota.authentication.AllowedHostsValidator getAllowedHostsValidator()
      Specified by:
      getAllowedHostsValidator in interface com.microsoft.kiota.authentication.AccessTokenProvider