gstsdp.mikeypayload
Module for [MIKEYPayload] class
class MIKEYPayload
Types 1
classMIKEYPayload : gobject.boxed.Boxed
Hold the common fields for all payloads
Methods
void type(gstsdp.types.MIKEYPayloadType propval) @property nothrowSet `type` field. Params: propval = the payload typeuint kemacGetNSub() nothrowGet the number of sub payloads of payload. payload should be of type `GST_MIKEY_PT_KEMAC`. Returns: the number of sub payloads in payloadgstsdp.mikeypayload.MIKEYPayload kemacGetSub(uint idx) nothrowGet the sub payload of payload at idx. payload should be of type `GST_MIKEY_PT_KEMAC`.bool kemacSet(gstsdp.types.MIKEYEncAlg encAlg, gstsdp.types.MIKEYMacAlg macAlg) nothrowSet the KEMAC parameters. payload should point to a `GST_MIKEY_PT_KEMAC` payload.bool keyDataSetInterval(ubyte[] vfData, ubyte[] vtData) nothrowSet the key validity period in the `GST_MIKEY_PT_KEY_DATA` payload.bool keyDataSetKey(gstsdp.types.MIKEYKeyDataType keyType, ubyte[] keyData) nothrowSet key_len bytes of key_data of type key_type as the key for the `GST_MIKEY_PT_KEY_DATA` payload.bool keyDataSetSalt(ubyte[] saltData = null) nothrowSet the salt key data. If salt_len is 0 and salt_data is null, the salt data will be removed.bool keyDataSetSpi(ubyte[] spiData) nothrowSet the SPI/MKI validity in the `GST_MIKEY_PT_KEY_DATA` payload.bool pkeSet(gstsdp.types.MIKEYCacheType C, ubyte[] data) nothrowSet the PKE values in payload. payload must be of type `GST_MIKEY_PT_PKE`.bool spAddParam(ubyte type, ubyte[] val) nothrowAdd a new parameter to the `GST_MIKEY_PT_SP` payload with type, len and val.uint spGetNParams() nothrowGet the number of security policy parameters in a `GST_MIKEY_PT_SP` payload. Returns: the number of parameters in payloadgstsdp.mikeypayload_spparam.MIKEYPayloadSPParam spGetParam(uint idx) nothrowGet the Security Policy parameter in a `GST_MIKEY_PT_SP` payload at idx.bool spRemoveParam(uint idx) nothrowRemove the Security Policy parameters from a `GST_MIKEY_PT_SP` payload at idx.bool spSet(uint policy, gstsdp.types.MIKEYSecProto proto) nothrowSet the Security Policy parameters for payload.Constructors
this(gstsdp.types.MIKEYPayloadType type)Make a new #GstMIKEYPayload with type.