GstSdp.MIKEYPayload¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
len |
r/w |
length of the payload |
|
mini_object |
r |
||
type |
r/w |
the payload type |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GstSdp.MIKEYPayload¶
Hold the common fields for all payloads
- classmethod new(type)[source]¶
- Parameters:
type (
GstSdp.MIKEYPayloadType
) – aGstSdp.MIKEYPayloadType
- Returns:
a new
GstSdp.MIKEYPayload
orNone
on failure.- Return type:
Make a new
GstSdp.MIKEYPayload
with type.New in version 1.4.
- kemac_add_sub(newpay)[source]¶
- Parameters:
newpay (
GstSdp.MIKEYPayload
) – aGstSdp.MIKEYPayload
to add- Returns:
True
on success.- Return type:
Add a new sub payload to self.
New in version 1.4.
- kemac_get_n_sub()[source]¶
- Returns:
the number of sub payloads in self
- Return type:
Get the number of sub payloads of self. self should be of type
GstSdp.MIKEYPayloadType.KEMAC
.New in version 1.4.
- kemac_get_sub(idx)[source]¶
- Parameters:
idx (
int
) – an index- Returns:
the
GstSdp.MIKEYPayload
at idx.- Return type:
Get the sub payload of self at idx. self should be of type
GstSdp.MIKEYPayloadType.KEMAC
.New in version 1.4.
- kemac_set(enc_alg, mac_alg)[source]¶
- Parameters:
enc_alg (
GstSdp.MIKEYEncAlg
) – theGstSdp.MIKEYEncAlg
mac_alg (
GstSdp.MIKEYMacAlg
) – aGstSdp.MIKEYMacAlg
- Returns:
True
on success- Return type:
Set the KEMAC parameters. self should point to a
GstSdp.MIKEYPayloadType.KEMAC
payload.New in version 1.4.
- key_data_set_interval(vf_data, vt_data)[source]¶
- Parameters:
- Returns:
True
on success- Return type:
Set the key validity period in the
GstSdp.MIKEYPayloadType.KEY_DATA
self.New in version 1.4.
- key_data_set_key(key_type, key_data)[source]¶
- Parameters:
key_type (
GstSdp.MIKEYKeyDataType
) – aGstSdp.MIKEYKeyDataType
key_data (
bytes
) – the key of type key_type
- Returns:
True
on success- Return type:
Set key_len bytes of key_data of type key_type as the key for the
GstSdp.MIKEYPayloadType.KEY_DATA
self.New in version 1.4.
- key_data_set_salt(salt_data)[source]¶
-
Set the salt key data. If salt_len is 0 and salt_data is
None
, the salt data will be removed.New in version 1.4.
- key_data_set_spi(spi_data)[source]¶
-
Set the SPI/MKI validity in the
GstSdp.MIKEYPayloadType.KEY_DATA
self.New in version 1.4.
- pke_set(C, data)[source]¶
- Parameters:
C (
GstSdp.MIKEYCacheType
) – envelope key cache indicatordata (
bytes
) – the encrypted envelope key
- Returns:
True
on success- Return type:
Set the PKE values in self. self must be of type
GstSdp.MIKEYPayloadType.PKE
.New in version 1.4.
- rand_set(rand)[source]¶
-
Set the random values in a
GstSdp.MIKEYPayloadType.RAND
self.New in version 1.4.
- sp_add_param(type, val)[source]¶
- Parameters:
- Returns:
True
on success- Return type:
Add a new parameter to the
GstSdp.MIKEYPayloadType.SP
self with type, len and val.New in version 1.4.
- sp_get_n_params()[source]¶
- Returns:
the number of parameters in self
- Return type:
Get the number of security policy parameters in a
GstSdp.MIKEYPayloadType.SP
self.New in version 1.4.
- sp_get_param(idx)[source]¶
- Parameters:
idx (
int
) – an index- Returns:
the
GstSdp.MIKEYPayloadSPParam
at idx in self- Return type:
Get the Security Policy parameter in a
GstSdp.MIKEYPayloadType.SP
self at idx.New in version 1.4.
- sp_remove_param(idx)[source]¶
-
Remove the Security Policy parameters from a
GstSdp.MIKEYPayloadType.SP
self at idx.New in version 1.4.
- sp_set(policy, proto)[source]¶
- Parameters:
policy (
int
) – the policy numberproto (
GstSdp.MIKEYSecProto
) – aGstSdp.MIKEYSecProto
- Returns:
True
on success- Return type:
Set the Security Policy parameters for self.
New in version 1.4.
- t_set(type, ts_value)[source]¶
- Parameters:
type (
GstSdp.MIKEYTSType
) – theGstSdp.MIKEYTSType
ts_value (
bytes
) – the timestamp value
- Returns:
True
on success- Return type:
Set the timestamp in a
GstSdp.MIKEYPayloadType.T
self.New in version 1.4.