Auth
Object Hierarchy:
Description:
[ CCode ( cname = "GstRTSPAuth" , lower_case_cprefix = "gst_rtsp_auth_" , type_id = "gst_rtsp_auth_get_type ()" ) ]
[ GIR ( name = "RTSPAuth" ) ]
public class Auth : Object
The authentication structure.
Content:
Constants:
Static methods:
Creation methods:
Methods:
- public void add_basic (string basic, Token token)
Add a basic token for the default authentication algorithm that
enables the client with privileges listed in token
.
- public void add_digest (string user, string pass, Token token)
Add a digest user
and pass
for the default
authentication algorithm that enables the client with privileges listed in token
.
- public virtual bool authenticate (Context ctx)
- public virtual bool check (Context ctx, string check)
- public virtual void generate_authenticate_header (Context ctx)
- public Token? get_default_token ()
Get the default token for this.
- public string get_realm ()
- public AuthMethod get_supported_methods ()
Gets the supported authentication methods of
this.
- public TlsAuthenticationMode get_tls_authentication_mode ()
Get the TlsAuthenticationMode.
- public TlsCertificate? get_tls_certificate ()
Get the TlsCertificate used for negotiating
TLS this.
- public TlsDatabase? get_tls_database ()
Get the TlsDatabase used for
verifying client certificate.
- public bool parse_htdigest (string path, Token token)
Parse the contents of the file at path
and enable the
privileges listed in token
for the users it describes.
- public void remove_basic (string basic)
Removes basic
authentication token.
- public void remove_digest (string user)
Removes a digest user.
- public void set_default_token (Token? token)
Set the default
Token to token
in this.
- public void set_realm (string realm)
Set the realm
of auth
- public void set_supported_methods (AuthMethod methods)
Sets the supported authentication methods
for
this.
- public void set_tls_authentication_mode (TlsAuthenticationMode mode)
The TlsAuthenticationMode to set on the
underlying GTlsServerConnection.
- public void set_tls_certificate (TlsCertificate? cert)
Set the TLS certificate for the auth.
- public void set_tls_database (TlsDatabase? database)
Sets the certificate database that is used to verify peer
certificates.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref