-
- All Implemented Interfaces:
public class UsernameAttribute extends Attribute
The USERNAME attribute is used for message integrity. The value of USERNAME is a variable length value.
-
-
Method Summary
Modifier and Type Method Description Array<byte>getUsername()Returns a (cloned) byte array containing the data value of the username attribute. voidsetUsername(Array<byte> username)Copies the specified binary array into the the data value of the username attribute. Array<byte>encode()Returns a binary representation of this attribute. chargetDataLength()Returns the length of this attribute's body. StringgetName()Returns the human readable name of this attribute. booleanequals(Object obj)Compares two STUN Attributes. -
-
Method Detail
-
getUsername
Array<byte> getUsername()
Returns a (cloned) byte array containing the data value of the username attribute.
-
setUsername
void setUsername(Array<byte> username)
Copies the specified binary array into the the data value of the username attribute.
- Parameters:
username- the binary array containing the username.
-
getDataLength
char getDataLength()
Returns the length of this attribute's body.
-
-
-
-