public interface EntityCapabilities
An interface for different Entity Capabilities implementations as described in the following two specifications.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createCapabilityHashNode(Hashed hashed)
Creates the Capability Hash Node.
|
byte[] |
createVerificationString(InfoNode infoNode)
Creates an UTF-8 encoded verification string from a disco#info query.
|
java.util.Set<Hashed> |
getCapabilityHashSet()
Gets the capability hash set.
|
java.util.Set<Hashed> getCapabilityHashSet()
Gets the capability hash set.
byte[] createVerificationString(InfoNode infoNode)
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.
infoNode
- The query.java.lang.String createCapabilityHashNode(Hashed hashed)
Creates the Capability Hash Node.
This node is used to query the generating entity via a Service Discovery Info query (disco#info).
hashed
- The pair of hash algorithm and value.Copyright © 2014–2019 XMPP.rocks. All rights reserved.