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.MIKEYPayloadorNoneon failure.- Return type:
Make a new
GstSdp.MIKEYPayloadwith type.New in version 1.4.
- kemac_add_sub(newpay)[source]¶
- Parameters:
newpay (
GstSdp.MIKEYPayload) – aGstSdp.MIKEYPayloadto add- Returns:
Trueon 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.MIKEYPayloadat 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.MIKEYEncAlgmac_alg (
GstSdp.MIKEYMacAlg) – aGstSdp.MIKEYMacAlg
- Returns:
Trueon success- Return type:
Set the KEMAC parameters. self should point to a
GstSdp.MIKEYPayloadType.KEMACpayload.New in version 1.4.
- key_data_set_interval(vf_data, vt_data)[source]¶
- Parameters:
- Returns:
Trueon success- Return type:
Set the key validity period in the
GstSdp.MIKEYPayloadType.KEY_DATAself.New in version 1.4.
- key_data_set_key(key_type, key_data)[source]¶
- Parameters:
key_type (
GstSdp.MIKEYKeyDataType) – aGstSdp.MIKEYKeyDataTypekey_data (
bytes) – the key of type key_type
- Returns:
Trueon success- Return type:
Set key_len bytes of key_data of type key_type as the key for the
GstSdp.MIKEYPayloadType.KEY_DATAself.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_DATAself.New in version 1.4.
- pke_set(C, data)[source]¶
- Parameters:
C (
GstSdp.MIKEYCacheType) – envelope key cache indicatordata (
bytes) – the encrypted envelope key
- Returns:
Trueon 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.RANDself.New in version 1.4.
- sp_add_param(type, val)[source]¶
- Parameters:
- Returns:
Trueon success- Return type:
Add a new parameter to the
GstSdp.MIKEYPayloadType.SPself 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.SPself.New in version 1.4.
- sp_get_param(idx)[source]¶
- Parameters:
idx (
int) – an index- Returns:
the
GstSdp.MIKEYPayloadSPParamat idx in self- Return type:
Get the Security Policy parameter in a
GstSdp.MIKEYPayloadType.SPself at idx.New in version 1.4.
- sp_remove_param(idx)[source]¶
-
Remove the Security Policy parameters from a
GstSdp.MIKEYPayloadType.SPself at idx.New in version 1.4.
- sp_set(policy, proto)[source]¶
- Parameters:
policy (
int) – the policy numberproto (
GstSdp.MIKEYSecProto) – aGstSdp.MIKEYSecProto
- Returns:
Trueon 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.MIKEYTSTypets_value (
bytes) – the timestamp value
- Returns:
Trueon success- Return type:
Set the timestamp in a
GstSdp.MIKEYPayloadType.Tself.New in version 1.4.