Token
Object Hierarchy:
Description:
[ CCode ( cname = "GstRTSPToken" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , lower_case_cprefix = "gst_rtsp_token_" , type_id = "gst_rtsp_token_get_type ()" ) ]
[ Compact ]
[ GIR ( name = "RTSPToken" ) ]
public class Token : MiniObject
An opaque object used for checking authorisations.
It is generated after successful authentication.
Content:
Constants:
- public const string MEDIA_FACTORY_ROLE
G_TYPE_STRING, the role to use when dealing with media factories
- public const string TRANSPORT_CLIENT_SETTINGS
G_TYPE_BOOLEAN, true if the client
can specify TTL, destination and port pair in multicast.
Creation methods:
- public Token (string firstfield, ...)
Create a new Authorization token with the given fieldnames and values.
- public Token.empty ()
Create a new empty Authorization token.
- public Token.valist (string firstfield, va_list var_args)
Create a new Authorization token with the given fieldnames and values.
Methods:
- public unowned string? get_string (string field)
Get the string value of field
in
this.
- public unowned Structure get_structure ()
Access the structure of the token.
- public bool is_allowed (string field)
Check if this has a boolean
field
and if it is set to true.
- public void set_bool (string field, bool bool_value)
Sets a boolean value on this.
- public void set_string (string field, string string_value)
Sets a string value on this.
- public unowned Structure writable_structure ()
Get a writable version of the structure.
Inherited Members:
All known members inherited from class Gst.MiniObject
- @lock
- @ref
- @unlock
- add_parent
- copy
- dispose
- flags
- free
- get_qdata
- is_writable
- lockstate
- make_writable
- refcount
- remove_parent
- replace
- set_qdata
- steal_qdata
- take
- type
- unref
- weak_ref
- weak_unref