MIKEYMessage
Object Hierarchy:
Description:
[ CCode ( cname = "GstMIKEYMessage" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , lower_case_cprefix = "gst_mikey_message_" , type_id = "gst_mikey_message_get_type ()" ) ]
[ Compact ]
[ GIR ( name = "MIKEYMessage" ) ]
public class MIKEYMessage : MiniObject
Structure holding the information of the MIKEY message
Content:
Creation methods:
Methods:
- public bool add_cs_srtp (uint8 policy, uint32 ssrc, uint32 roc)
Add a Crypto policy for SRTP to this
.
- public bool add_payload (owned MIKEYPayload payload)
Add a new payload to this.
- public bool add_pke (MIKEYCacheType C, uint8[] data)
Add a new PKE payload to this with
the given parameters.
- public bool add_rand (uint8[] rand)
Add a new RAND payload to this with
the given parameters.
- public bool add_rand_len (uint8 len)
Add a new RAND payload to this with
len
random bytes.
- public bool add_t (MIKEYTSType type, uint8[] ts_value)
Add a new T payload to this with the
given parameters.
- public bool add_t_now_ntp_utc ()
Add a new T payload to this that
contains the current time in NTP-UTC format.
- public string base64_encode ()
- public unowned MIKEYPayload find_payload (MIKEYPayloadType type, uint nth)
Find the nth
occurrence of the payload with type
in this.
- public unowned MIKEYMapSRTP? get_cs_srtp (uint idx)
Get the policy information of this
at idx
.
- public uint get_n_cs ()
Get the number of crypto sessions in this
.
- public uint get_n_payloads ()
Get the number of payloads in this.
- public unowned MIKEYPayload get_payload (uint idx)
- public bool insert_cs_srtp (int idx, MIKEYMapSRTP map)
Insert a Crypto Session map for SRTP in
this at idx
- public bool insert_payload (uint idx, owned MIKEYPayload payload)
Insert the payload
at index idx
in
this.
- public bool remove_cs_srtp (int idx)
Remove the SRTP policy at idx
.
- public bool remove_payload (uint idx)
Remove the payload in this at
idx
- public bool replace_cs_srtp (int idx, MIKEYMapSRTP map)
Replace a Crypto Session map for SRTP in
this at idx
with map
.
- public bool replace_payload (uint idx, owned MIKEYPayload payload)
Replace the payload at idx
in
this with payload
.
- public bool set_info (uint8 version, MIKEYType type, bool V, MIKEYPRFFunc prf_func, uint32 CSB_id, MIKEYMapType map_type)
Set the information in this.
- public Bytes to_bytes (MIKEYEncryptInfo info) throws Error
Convert this to a
Bytes.
- public bool to_caps (Caps caps)
Fields:
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