gstsdp.mikeypayload

Module for [MIKEYPayload] class

Types 1

Hold the common fields for all payloads

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
MIKEYPayload self() nothrowReturns `this`, for use in `with` statements.
gstsdp.types.MIKEYPayloadType type() @property nothrowGet `type` field. Returns: the payload type
void type(gstsdp.types.MIKEYPayloadType propval) @property nothrowSet `type` field. Params: propval = the payload type
uint len() @property nothrowGet `len` field. Returns: length of the payload
void len(uint propval) @property nothrowSet `len` field. Params: propval = length of the payload
bool kemacAddSub(gstsdp.mikeypayload.MIKEYPayload newpay) nothrowAdd a new sub payload to payload.
uint 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 payload
gstsdp.mikeypayload.MIKEYPayload kemacGetSub(uint idx) nothrowGet the sub payload of payload at idx. payload should be of type `GST_MIKEY_PT_KEMAC`.
bool kemacRemoveSub(uint idx) nothrowRemove the sub payload at idx in payload.
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 randSet(ubyte[] rand) nothrowSet the random values in a `GST_MIKEY_PT_RAND` payload.
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 payload
gstsdp.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(void * ptr, Flag!"Take" take)
this(gstsdp.types.MIKEYPayloadType type)Make a new #GstMIKEYPayload with type.