GstSdp.MIKEYPayload¶
Fields¶
| Name | Type | Access | Description |
|---|---|---|---|
| len | int |
r/w | length of the payload |
| mini_object | Gst.MiniObject |
r | |
| type | GstSdp.MIKEYPayloadType |
r/w | the payload type |
Methods¶
| class | new (type) |
kemac_add_sub (newpay) |
|
kemac_get_n_sub () |
|
kemac_get_sub (idx) |
|
kemac_remove_sub (idx) |
|
kemac_set (enc_alg, mac_alg) |
|
key_data_set_interval (vf_len, vt_data) |
|
key_data_set_key (key_type, key_data) |
|
key_data_set_salt (salt_data) |
|
key_data_set_spi (spi_data) |
|
pke_set (C, data) |
|
rand_set (rand) |
|
sp_add_param (type, val) |
|
sp_get_n_params () |
|
sp_get_param (idx) |
|
sp_remove_param (idx) |
|
sp_set (policy, proto) |
|
t_set (type, ts_value) |
Details¶
-
class
GstSdp.MIKEYPayload¶ Hold the common fields for all payloads
-
classmethod
new(type)[source]¶ Parameters: type ( GstSdp.MIKEYPayloadType) – aGstSdp.MIKEYPayloadTypeReturns: a new GstSdp.MIKEYPayloadorNoneon failure.Return type: GstSdp.MIKEYPayloadorNoneMake a new
GstSdp.MIKEYPayloadwith type.New in version 1.4.
-
kemac_add_sub(newpay)[source]¶ Parameters: newpay ( GstSdp.MIKEYPayload) – aGstSdp.MIKEYPayloadto addReturns: Trueon success.Return type: boolAdd 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: intGet 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 indexReturns: the GstSdp.MIKEYPayloadat idx.Return type: GstSdp.MIKEYPayloadGet the sub payload of self at idx. self should be of type
GstSdp.MIKEYPayloadType.KEMAC.New in version 1.4.
-
kemac_remove_sub(idx)[source]¶ Parameters: idx ( int) – the index to removeReturns: Trueon success.Return type: boolRemove the sub payload at idx in self.
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: Trueon successReturn type: Set the KEMAC parameters. self should point to a
GstSdp.MIKEYPayloadType.KEMACpayload.New in version 1.4.
- enc_alg (
-
key_data_set_interval(vf_len, vt_data)[source]¶ Parameters: Returns: Trueon successReturn 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.MIKEYKeyDataType - key_data (
bytes) – the key of type key_type
Returns: Trueon successReturn 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_type (
-
key_data_set_salt(salt_data)[source]¶ Parameters: salt_data ( bytesorNone) – the saltReturns: Trueon successReturn type: boolSet 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]¶ Parameters: spi_data ( bytes) – the SPI/MKI dataReturns: Trueon successReturn type: boolSet 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 indicator - data (
bytes) – the encrypted envelope key
Returns: Trueon successReturn type: Set the PKE values in self. self must be of type
GstSdp.MIKEYPayloadType.PKE.New in version 1.4.
- C (
-
rand_set(rand)[source]¶ Parameters: rand ( bytes) – random valuesReturns: Trueon successReturn type: boolSet the random values in a
GstSdp.MIKEYPayloadType.RANDself.New in version 1.4.
-
sp_add_param(type, val)[source]¶ Parameters: Returns: Trueon successReturn 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: intGet 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 indexReturns: the GstSdp.MIKEYPayloadSPParamat idx in selfReturn type: GstSdp.MIKEYPayloadSPParamGet the Security Policy parameter in a
GstSdp.MIKEYPayloadType.SPself at idx.New in version 1.4.
-
sp_remove_param(idx)[source]¶ Parameters: idx ( int) – an indexReturns: Trueon successReturn type: boolRemove 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 number - proto (
GstSdp.MIKEYSecProto) – aGstSdp.MIKEYSecProto
Returns: Trueon successReturn type: Set the Security Policy parameters for self.
New in version 1.4.
- policy (
-
t_set(type, ts_value)[source]¶ Parameters: - type (
GstSdp.MIKEYTSType) – theGstSdp.MIKEYTSType - ts_value (
bytes) – the timestamp value
Returns: Trueon successReturn type: Set the timestamp in a
GstSdp.MIKEYPayloadType.Tself.New in version 1.4.
- type (
-
classmethod