Click or drag to resize

MessageIntegrityAttribute Class

The MESSAGE-INTEGRITY attribute contains an HMAC-SHA1 [RFC2104] of the STUN message. The MESSAGE-INTEGRITY attribute can be present in any STUN message type. Since it uses the SHA1 hash, the HMAC will be 20 bytes. The text used as input to HMAC is the STUN message, including the header, up to and including the attribute preceding the MESSAGE-INTEGRITY attribute. With the exception of the FINGERPRINT attribute, which appears after MESSAGE-INTEGRITY, agents MUST ignore all other attributes that follow MESSAGE-INTEGRITY.
Inheritance Hierarchy
SystemObject
  FM.IceLink.StunAttribute
    FM.IceLink.StunMessageIntegrityAttribute

Namespace:  FM.IceLink.Stun
Assembly:  FM.IceLink (in FM.IceLink.dll) Version: 3.2.2.607 (3.2.2.607)

The MessageIntegrityAttribute type exposes the following members.

Constructors
  NameDescription
Public methodMessageIntegrityAttribute
Initializes a new instance of the MessageIntegrityAttribute class.
Top
Properties
  NameDescription
Public propertyMessageBuffer
Gets or sets the message buffer.
Public propertyTypeValue
Gets the type value.
(Overrides AttributeTypeValue.)
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLength
Gets the length of the attribute, including header and padding.
(Inherited from Attribute.)
Public methodGetPaddingLength
Gets the length of the padding.
(Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Protected methodGetValueLength
Gets the length of the attribute value.
(Overrides AttributeGetValueLength.)
Public methodIsValid
After creating a message-integrity attribute using the byte array representation, this method determines whether the supplied key is valid.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberReadValueFrom
Initializes a new instance of the MessageIntegrityAttribute class.
Public methodToString
Returns a string that represents this instance.
(Overrides ObjectToString.)
Protected methodWriteIPAddress
Writes an IP address.
(Inherited from Attribute.)
Protected methodWritePort
Writes a port.
(Inherited from Attribute.)
Public methodWriteTo(DataBuffer, Int32)
Writes the attribute to a data buffer.
(Inherited from Attribute.)
Public methodWriteTo(DataBuffer, Int32, Int32)
Writes the attribute to a data buffer.
(Inherited from Attribute.)
Protected methodWriteValueTo
Writes the attribute value to a data buffer.
(Overrides AttributeWriteValueTo(DataBuffer, Int32).)
Protected methodWriteXorIPAddress
Writes an XOR'd IP address.
(Inherited from Attribute.)
Protected methodWriteXorPort
Writes an XOR'd port.
(Inherited from Attribute.)
Top
See Also