Class AnnosaurusAccessTokenProvider

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

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

    • AnnosaurusAccessTokenProvider

      public AnnosaurusAccessTokenProvider(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