Class StunUsernameAttribute
source code
USERNAME
The USERNAME attribute is used for message integrity. It serves as a
means to identify the shared secret used in the message integrity check.
The USERNAME is always present in a Shared Secret Response, along with
the PASSWORD. It is optionally present in a Binding Request when message
integrity is used.
The value of USERNAME is a variable length opaque value. Its length
MUST be a multiple of 4 (measured in bytes) in order to guarantee
alignment of attributes on word boundaries.
|
Inherited from StunAttribute:
CHANGED_ADDRESS,
CHANGE_REQUEST,
ERROR_CODE,
MAPPED_ADDRESS,
MESSAGE_INTEGRITY,
PASSWORD,
REFLECTED_FROM,
RESPONSE_ADDRESS,
SOURCE_ADDRESS,
UNKNOWN_ATTRIBUTES,
USERNAME
|