-
- All Implemented Interfaces:
public class NonceAttribute extends Attribute
The NONCE attribute is used for authentication.
-
-
Method Summary
Modifier and Type Method Description Array<byte>getNonce()Returns a (cloned) byte array containing the data value of the nonce attribute. voidsetNonce(Array<byte> nonce)Copies the specified binary array into the the data value of the nonce 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
-
getNonce
Array<byte> getNonce()
Returns a (cloned) byte array containing the data value of the nonce attribute.
-
setNonce
void setNonce(Array<byte> nonce)
Copies the specified binary array into the the data value of the nonce attribute.
- Parameters:
nonce- the binary array containing the nonce.
-
getDataLength
char getDataLength()
Returns the length of this attribute's body.
-
-
-
-