public final class EntityCapabilities1 extends StreamFeature implements EntityCapabilities, Hashed
The implementation of the <c/> element in the http://jabber.org/protocol/caps.
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAMESPACE
|
| Constructor and Description |
|---|
EntityCapabilities1(java.lang.String node,
InfoNode infoNode,
java.security.MessageDigest messageDigest)
Creates an entity caps from an info node and hash function.
|
| 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.lang.String |
getHashAlgorithm()
Gets the hash algorithm.
|
byte[] |
getHashValue()
Gets the hash value.
|
java.lang.String |
getNode()
Gets the node.
|
java.lang.String |
getVerificationString()
Gets the verification string that is used to verify the identity and supported features of the entity.
|
java.lang.String |
toString() |
compareTo, getPriority, isMandatory, requiresRestartpublic static final java.lang.String NAMESPACE
public EntityCapabilities1(java.lang.String node,
InfoNode infoNode,
java.security.MessageDigest messageDigest)
Creates an entity caps from an info node and hash function.
node - The node.infoNode - The info node.messageDigest - The hash function.public final java.lang.String getHashAlgorithm()
HashedGets the hash algorithm.
getHashAlgorithm in interface Hashedpublic final byte[] getHashValue()
HashedGets the hash value.
getHashValue in interface Hashedpublic final java.lang.String getNode()
Gets the node.
A URI that uniquely identifies a software application, typically a URL at the website of the project or company that produces the software.
It is RECOMMENDED for the value of the ‘node’ attribute to be an HTTP URL at which a user could find further information about the software product, such as “http://psi-im.org” for the Psi client; this enables a processing application to also determine a unique string for the generating application, which it could maintain in a list of known software implementations (e.g., associating the name received via the disco#info reply with the URL found in the caps data).
public final java.lang.String getVerificationString()
Gets the verification string that is used to verify the identity and supported features of the entity.
public final java.util.Set<Hashed> getCapabilityHashSet()
EntityCapabilitiesGets the capability hash set.
getCapabilityHashSet in interface EntityCapabilitiespublic final byte[] createVerificationString(InfoNode infoNode)
EntityCapabilitiesCreates 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.
createVerificationString in interface EntityCapabilitiesinfoNode - The query.public final java.lang.String createCapabilityHashNode(Hashed hashed)
EntityCapabilitiesCreates the Capability Hash Node.
This node is used to query the generating entity via a Service Discovery Info query (disco#info).
createCapabilityHashNode in interface EntityCapabilitieshashed - The pair of hash algorithm and value.public final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2019 XMPP.rocks. All rights reserved.