MIKEYMessage

Structure holding the information of the MIKEY message

Constructors

this
this()

Make a new MIKEY message.

Members

Functions

addCsSrtp
bool addCsSrtp(ubyte policy, uint ssrc, uint roc)

Add a Crypto policy for SRTP to msg.

addPayload
bool addPayload(gstsdp.mikeypayload.MIKEYPayload payload)

Add a new payload to msg.

addPke
bool addPke(gstsdp.types.MIKEYCacheType C, ubyte[] data)

Add a new PKE payload to msg with the given parameters.

addRand
bool addRand(ubyte[] rand)

Add a new RAND payload to msg with the given parameters.

addRandLen
bool addRandLen(ubyte len)

Add a new RAND payload to msg with len random bytes.

addTNowNtpUtc
bool addTNowNtpUtc()

Add a new T payload to msg that contains the current time in NTP-UTC format.

base64Encode
string base64Encode()
findPayload
gstsdp.mikeypayload.MIKEYPayload findPayload(gstsdp.types.MIKEYPayloadType type, uint nth)

Find the nth occurrence of the payload with type in msg.

getCsSrtp
gstsdp.types.MIKEYMapSRTP getCsSrtp(uint idx)

Get the policy information of msg at idx.

getNCs
uint getNCs()

Get the number of crypto sessions in msg.

getNPayloads
uint getNPayloads()

Get the number of payloads in msg.

getPayload
gstsdp.mikeypayload.MIKEYPayload getPayload(uint idx)

Get the #GstMIKEYPayload at idx in msg

insertCsSrtp
bool insertCsSrtp(int idx, gstsdp.types.MIKEYMapSRTP map)

Insert a Crypto Session map for SRTP in msg at idx

insertPayload
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.

removeCsSrtp
bool removeCsSrtp(int idx)

Remove the SRTP policy at idx.

removePayload
bool removePayload(uint idx)

Remove the payload in msg at idx

replaceCsSrtp
bool replaceCsSrtp(int idx, gstsdp.types.MIKEYMapSRTP map)

Replace a Crypto Session map for SRTP in msg at idx with map.

replacePayload
bool replacePayload(uint idx, gstsdp.mikeypayload.MIKEYPayload payload)

Replace the payload at idx in msg with payload.

setInfo
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.

toBytes
glib.bytes.Bytes toBytes(gstsdp.types.MIKEYEncryptInfo info)

Convert msg to a #GBytes.

toCaps
bool toCaps(gst.caps.Caps caps)

Static functions

newFromBytes
gstsdp.mikeymessage.MIKEYMessage newFromBytes(glib.bytes.Bytes bytes, gstsdp.types.MIKEYDecryptInfo info)

Make a new #GstMIKEYMessage from bytes.

newFromCaps
gstsdp.mikeymessage.MIKEYMessage newFromCaps(gst.caps.Caps caps)

Makes mikey message including:

  • Security Policy Payload
  • Key Data Transport Payload
  • Key Data Sub-Payload
newFromData
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.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.