Package rocks.xmpp.extensions.caps.model
Interface EntityCapabilities
-
- All Known Implementing Classes:
EntityCapabilities1
,EntityCapabilities2
public interface EntityCapabilities
An interface for different Entity Capabilities implementations as described in the following two specifications.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
createCapabilityHashNode(Hashed hashed)
Creates the Capability Hash Node.byte[]
createVerificationString(DiscoverableInfo discoverableInfo)
Creates an UTF-8 encoded verification string from a disco#info query.Set<Hashed>
getCapabilityHashSet()
Gets the capability hash set.
-
-
-
Method Detail
-
getCapabilityHashSet
Set<Hashed> getCapabilityHashSet()
Gets the capability hash set.- Returns:
- The capability hash set.
-
createVerificationString
byte[] createVerificationString(DiscoverableInfo discoverableInfo)
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.
- Parameters:
discoverableInfo
- The query.- Returns:
- The caps string, aka. verification string.
-
-