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§

source

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.

source

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.

source

fn generate_authenticate_header(&self, ctx: &RTSPContext)

Object Safety§

This trait is not object safe.

Implementors§