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
[ GIR ( name = "RTSPAuth" ) ]
public class Auth : Object
The authentication structure.
Namespace: Gst.RTSPServer
Package: gstreamer-rtsp-server-1.0
Content:
Constants:
- public const string CHECK_CONNECT
Check a new connection
- public const string CHECK_MEDIA_FACTORY_ACCESS
Check if access is allowed to a factory.
- public const string CHECK_MEDIA_FACTORY_CONSTRUCT
Check if media can be constructed from a media factory A response should be sent on error.
- public const string CHECK_TRANSPORT_CLIENT_SETTINGS
Check if the client can specify TTL, destination and port pair in multicast.
- public const string CHECK_URL
Check the URL and methods
Static methods:
- public static bool check_current_context (string check)
Check if
check
is allowed in the current context. - public static string make_basic (string user, string pass)
Construct a Basic authorisation token from
user
andpass
.
Creation methods:
- public Auth ()
Create a new Auth instance.
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
andpass
for the default authentication algorithm that enables the client with privileges listed intoken
. - 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 intoken
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
ofauth
- 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:
- public virtual signal bool accept_certificate (TlsConnection connection, TlsCertificate peer_cert, TlsCertificateFlags errors)
Emitted during the TLS handshake after the client certificate has been received.
Inherited Members:
All known members inherited from class GLib.Object