iceberg-cpp
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
iceberg::rest::auth::AuthManagers Class Reference

Registry-backed factory for AuthManager implementations. More...

#include <auth_managers.h>

Static Public Member Functions

static Result< std::unique_ptr< AuthManager > > Load (std::string_view name, const std::unordered_map< std::string, std::string > &properties)
 Load a manager by consulting the "rest.auth.type" configuration.
 
static void Register (std::string_view auth_type, AuthManagerFactory factory)
 Register or override the factory for a given auth type.
 

Detailed Description

Registry-backed factory for AuthManager implementations.

Member Function Documentation

◆ Load()

Result< std::unique_ptr< AuthManager > > iceberg::rest::auth::AuthManagers::Load ( std::string_view  name,
const std::unordered_map< std::string, std::string > &  properties 
)
static

Load a manager by consulting the "rest.auth.type" configuration.

Parameters
nameName of the auth manager.
propertiesCatalog properties used to determine auth type.
Returns
Manager instance or an error if no factory matches.

◆ Register()

void iceberg::rest::auth::AuthManagers::Register ( std::string_view  auth_type,
AuthManagerFactory  factory 
)
static

Register or override the factory for a given auth type.

This method is not thread-safe. All registrations should be done during application startup before any concurrent access to Load().

Parameters
auth_typeCase-insensitive type identifier (e.g., "basic").
factoryFactory function that produces the manager.

The documentation for this class was generated from the following files: