gstsdp.mikeymessage

Module for [MIKEYMessage] class

Types 1

Structure holding the information of the MIKEY message

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
MIKEYMessage self()Returns `this`, for use in `with` statements.
ubyte version_() @propertyGet `version_` field. Returns: the version
void version_(ubyte propval) @propertySet `version_` field. Params: propval = the version
gstsdp.types.MIKEYType type() @propertyGet `type` field. Returns: the #GstMIKEYType message type
void type(gstsdp.types.MIKEYType propval) @propertySet `type` field. Params: propval = the #GstMIKEYType message type
bool V() @propertyGet `V` field. Returns: verify flag
void V(bool propval) @propertySet `V` field. Params: propval = verify flag
gstsdp.types.MIKEYPRFFunc prfFunc() @propertyGet `prfFunc` field. Returns: a #GstMIKEYPRFFunc
void prfFunc(gstsdp.types.MIKEYPRFFunc propval) @propertySet `prfFunc` field. Params: propval = a #GstMIKEYPRFFunc
uint CSBId() @propertyGet `CSBId` field. Returns: Identifies the Crypto Session Bundle
void CSBId(uint propval) @propertySet `CSBId` field. Params: propval = Identifies the Crypto Session Bundle
gstsdp.types.MIKEYMapType mapType() @propertyGet `mapType` field. Returns: a #GstMIKEYMapType
void mapType(gstsdp.types.MIKEYMapType propval) @propertySet `mapType` field. Params: propval = a #GstMIKEYMapType
gstsdp.mikeymessage.MIKEYMessage newFromCaps(gst.caps.Caps caps)Makes mikey message including: Security Policy Payload Key Data Transport Payload * Key Data Sub-Payload
gstsdp.mikeymessage.MIKEYMessage newFromData(ubyte[] data, gstsdp.types.MIKEYDecryptInfo info)Parse size bytes from data into a #GstMIKEYMessage. info contains the parameters to decrypt and verify the data.
bool addCsSrtp(ubyte policy, uint ssrc, uint roc)Add a Crypto policy for SRTP to msg.
bool addPayload(gstsdp.mikeypayload.MIKEYPayload payload)Add a new payload to msg.
bool addPke(gstsdp.types.MIKEYCacheType C, ubyte[] data)Add a new PKE payload to msg with the given parameters.
bool addRand(ubyte[] rand)Add a new RAND payload to msg with the given parameters.
bool addRandLen(ubyte len)Add a new RAND payload to msg with len random bytes.
bool addTNowNtpUtc()Add a new T payload to msg that contains the current time in NTP-UTC format. Returns: true on success
string base64Encode()
gstsdp.mikeypayload.MIKEYPayload findPayload(gstsdp.types.MIKEYPayloadType type, uint nth)Find the nth occurrence of the payload with type in msg.
gstsdp.types.MIKEYMapSRTP getCsSrtp(uint idx)Get the policy information of msg at idx.
uint getNCs()Get the number of crypto sessions in msg. Returns: the number of crypto sessions
uint getNPayloads()Get the number of payloads in msg. Returns: the number of payloads in msg
gstsdp.mikeypayload.MIKEYPayload getPayload(uint idx)Get the #GstMIKEYPayload at idx in msg
bool insertCsSrtp(int idx, gstsdp.types.MIKEYMapSRTP map)Insert a Crypto Session map for SRTP in msg at idx
bool insertPayload(uint idx, gstsdp.mikeypayload.MIKEYPayload payload)Insert the payload at index idx in msg. If idx is -1, the payload will be appended to msg.
bool removeCsSrtp(int idx)Remove the SRTP policy at idx.
bool removePayload(uint idx)Remove the payload in msg at idx
bool replaceCsSrtp(int idx, gstsdp.types.MIKEYMapSRTP map)Replace a Crypto Session map for SRTP in msg at idx with map.
bool replacePayload(uint idx, gstsdp.mikeypayload.MIKEYPayload payload)Replace the payload at idx in msg with payload.
bool setInfo(ubyte version_, gstsdp.types.MIKEYType type, bool V, gstsdp.types.MIKEYPRFFunc prfFunc, uint CSBId, gstsdp.types.MIKEYMapType mapType)Set the information in msg.
Constructors
this(void * ptr, Flag!"Take" take)
this()Make a new MIKEY message. Returns: a new #GstMIKEYMessage on success