Interface AuthProvider

All Known Implementing Classes:
AbstractUsernamePasswordProvider, AuthStoreAuthenticationProvider, BearerTokenProvider, NoAuthProvider, UsernamePasswordProvider

public interface AuthProvider
Interface for auth provider Must return the authentication header to pass to HTTP requests
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Get the authentication header for this provider
    Get the authentication scheme for this provider
    default String
    Get an opaque identity marker for the credentials this provider resolves for the given registry.
  • Method Details

    • getAuthHeader

      @Nullable String getAuthHeader(ContainerRef registry)
      Get the authentication header for this provider
      Parameters:
      registry - The registry
      Returns:
      The authentication header or null if not applicable
    • getAuthScheme

      AuthScheme getAuthScheme()
      Get the authentication scheme for this provider
      Returns:
      The authentication scheme
    • getIdentity

      default String getIdentity(ContainerRef registry)
      Get an opaque identity marker for the credentials this provider resolves for the given registry. This marker is used to key TokenCache entries alongside the requested Scopes
      Parameters:
      registry - The registry
      Returns:
      A non-null identity marker