Class EntityCapabilities2

    • Method Detail

      • createVerificationString

        public final byte[] createVerificationString​(DiscoverableInfo discoverableInfo)
        Description copied from interface: EntityCapabilities
        Creates an UTF-8 encoded verification string from a disco#info query.

        The returned byte array is neither hashed nor base64 encoded. It should be used as input for generating the capability hash set.

        Specified by:
        createVerificationString in interface EntityCapabilities
        Parameters:
        discoverableInfo - The query.
        Returns:
        The caps string, aka. verification string.
      • createCapabilityHashNode

        public final String createCapabilityHashNode​(Hashed hashed)
        Description copied from interface: EntityCapabilities
        Creates the Capability Hash Node.

        This node is used to query the generating entity via a Service Discovery Info query (disco#info).

        Specified by:
        createCapabilityHashNode in interface EntityCapabilities
        Parameters:
        hashed - The pair of hash algorithm and value.
        Returns:
        The node.