public interface ContentDependentAttribute
MessageIntegrityAttribute
and FingerprintAttribute
are two such attributes.
Rather than encoding them via the standard Attribute.encode()
method,
the stack would use the one from this interface.
Modifier and Type | Method and Description |
---|---|
byte[] |
encode(StunStack stunStack,
byte[] content,
int offset,
int length)
Returns a binary representation of this attribute.
|
byte[] encode(StunStack stunStack, byte[] content, int offset, int length)
stunStack
- the StunStack in the context of which the
request to encode this ContentDependentAttribute is being madecontent
- the content of the message that this attribute will be
transported inoffset
- the content-related offset where the actual
content starts.length
- the length of the content in the content array.Copyright © 2018. All rights reserved.