Trait gstreamer_rtsp_server::subclass::prelude::RTSPAuthImpl
source · pub trait RTSPAuthImpl:
RTSPAuthImplExt
+ ObjectImpl
+ Send
+ Sync {
// Provided methods
fn authenticate(&self, ctx: &RTSPContext) -> bool { ... }
fn check(&self, ctx: &RTSPContext, check: &GString) -> bool { ... }
fn generate_authenticate_header(&self, ctx: &RTSPContext) { ... }
}
Provided Methods§
sourcefn authenticate(&self, ctx: &RTSPContext) -> bool
fn authenticate(&self, ctx: &RTSPContext) -> bool
check the authentication of a client. The default implementation checks if the authentication in the header matches one of the basic authentication tokens. This function should set the authgroup field in the context.
sourcefn check(&self, ctx: &RTSPContext, check: &GString) -> bool
fn check(&self, ctx: &RTSPContext, check: &GString) -> bool
check if a resource can be accessed. this function should call authenticate to authenticate the client when needed. The method should also construct and send an appropriate response message on error.
fn generate_authenticate_header(&self, ctx: &RTSPContext)
Object Safety§
This trait is not object safe.