gstsdp.mikeymessage

Module for [MIKEYMessage] class

Types 1

Structure holding the information of the MIKEY message

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
MIKEYMessage self() nothrowReturns `this`, for use in `with` statements.
ubyte version_() @property nothrowGet `version_` field. Returns: the version
void version_(ubyte propval) @property nothrowSet `version_` field. Params: propval = the version
gstsdp.types.MIKEYType type() @property nothrowGet `type` field. Returns: the #GstMIKEYType message type
void type(gstsdp.types.MIKEYType propval) @property nothrowSet `type` field. Params: propval = the #GstMIKEYType message type
bool V() @property nothrowGet `V` field. Returns: verify flag
void V(bool propval) @property nothrowSet `V` field. Params: propval = verify flag
gstsdp.types.MIKEYPRFFunc prfFunc() @property nothrowGet `prfFunc` field. Returns: a #GstMIKEYPRFFunc
void prfFunc(gstsdp.types.MIKEYPRFFunc propval) @property nothrowSet `prfFunc` field. Params: propval = a #GstMIKEYPRFFunc
uint CSBId() @property nothrowGet `CSBId` field. Returns: Identifies the Crypto Session Bundle
void CSBId(uint propval) @property nothrowSet `CSBId` field. Params: propval = Identifies the Crypto Session Bundle
gstsdp.types.MIKEYMapType mapType() @property nothrowGet `mapType` field. Returns: a #GstMIKEYMapType
void mapType(gstsdp.types.MIKEYMapType propval) @property nothrowSet `mapType` field. Params: propval = a #GstMIKEYMapType
gstsdp.mikeymessage.MIKEYMessage newFromBytes(glib.bytes.Bytes bytes, gstsdp.types.MIKEYDecryptInfo info) staticMake a new #GstMIKEYMessage from bytes.
gstsdp.mikeymessage.MIKEYMessage newFromCaps(gst.caps.Caps caps) static nothrowMakes mikey message including: - Security Policy Payload - Key Data Transport Payload - Key Data Sub-Payload
gstsdp.mikeymessage.MIKEYMessage newFromData(ubyte[] data, gstsdp.types.MIKEYDecryptInfo info) staticParse 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) nothrowAdd a Crypto policy for SRTP to msg.
bool addPayload(gstsdp.mikeypayload.MIKEYPayload payload) nothrowAdd a new payload to msg.
bool addPke(gstsdp.types.MIKEYCacheType C, ubyte[] data) nothrowAdd a new PKE payload to msg with the given parameters.
bool addRand(ubyte[] rand) nothrowAdd a new RAND payload to msg with the given parameters.
bool addRandLen(ubyte len) nothrowAdd a new RAND payload to msg with len random bytes.
bool addTNowNtpUtc() nothrowAdd a new T payload to msg that contains the current time in NTP-UTC format. Returns: true on success
string base64Encode() nothrow
gstsdp.mikeypayload.MIKEYPayload findPayload(gstsdp.types.MIKEYPayloadType type, uint nth) nothrowFind the nth occurrence of the payload with type in msg.
gstsdp.types.MIKEYMapSRTP getCsSrtp(uint idx) nothrowGet the policy information of msg at idx.
uint getNCs() nothrowGet the number of crypto sessions in msg. Returns: the number of crypto sessions
uint getNPayloads() nothrowGet the number of payloads in msg. Returns: the number of payloads in msg
gstsdp.mikeypayload.MIKEYPayload getPayload(uint idx) nothrowGet the #GstMIKEYPayload at idx in msg
bool insertCsSrtp(int idx, gstsdp.types.MIKEYMapSRTP map) nothrowInsert a Crypto Session map for SRTP in msg at idx
bool insertPayload(uint idx, gstsdp.mikeypayload.MIKEYPayload payload) nothrowInsert the payload at index idx in msg. If idx is -1, the payload will be appended to msg.
bool removeCsSrtp(int idx) nothrowRemove the SRTP policy at idx.
bool removePayload(uint idx) nothrowRemove the payload in msg at idx
bool replaceCsSrtp(int idx, gstsdp.types.MIKEYMapSRTP map) nothrowReplace a Crypto Session map for SRTP in msg at idx with map.
bool replacePayload(uint idx, gstsdp.mikeypayload.MIKEYPayload payload) nothrowReplace 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) nothrowSet the information in msg.
bool toCaps(gst.caps.Caps caps) nothrow
Constructors
this(void * ptr, Flag!"Take" take)
this()Make a new MIKEY message. Returns: a new #GstMIKEYMessage on success