Package land.oras.auth
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 TypeMethodDescription@Nullable String
getAuthHeader
(ContainerRef registry) Get the authentication header for this provider
-
Method Details
-
getAuthHeader
Get the authentication header for this provider- Parameters:
registry
- The registry- Returns:
- The authentication header or null if not applicable
-