Package 

Interface ContentDependentAttribute

  • All Implemented Interfaces:

    
    public interface ContentDependentAttribute
    
                        

    ContentDependentAttributes have a value that depend on the content of the message. The MessageIntegrityAttribute and are two such attributes.

    Rather than encoding them via the standard encode method, the stack would use the one from this interface.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Array<byte> encode(StunStack stunStack, Array<byte> content, int offset, int length) Returns a binary representation of this attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • encode

         abstract Array<byte> encode(StunStack stunStack, Array<byte> content, int offset, int length)

        Returns a binary representation of this attribute.

        Parameters:
        stunStack - the StunStack in the context of which the request to encode this ContentDependentAttribute is being made
        content - the content of the message that this attribute will be transported in
        offset - the content-related offset where the actual content starts.
        length - the length of the content in the content array.