llarp::service::IAuthPolicy

Public Functions

Name
virtual ~IAuthPolicy() =default
virtual void AuthenticateAsync(std::shared_ptr< ProtocolMessage > msg, std::function< void(AuthResult)> hook) =0
asynchronously determine if we accept new convotag from remote service, call hook with result later
virtual bool AsyncAuthPending(ConvoTag tag) const =0
return true if we are asynchronously processing authentication on this convotag

Public Functions Documentation

function ~IAuthPolicy

virtual ~IAuthPolicy() =default

function AuthenticateAsync

virtual void AuthenticateAsync(
    std::shared_ptr< ProtocolMessage > msg,
    std::function< void(AuthResult)> hook
) =0

asynchronously determine if we accept new convotag from remote service, call hook with result later

function AsyncAuthPending

virtual bool AsyncAuthPending(
    ConvoTag tag
) const =0

return true if we are asynchronously processing authentication on this convotag


Updated on 2026-01-10 at 22:49:45 +0000