public final class EntityCapabilities extends StreamFeature
<c/> element in the http://jabber.org/protocol/caps.
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/caps
|
| Constructor and Description |
|---|
EntityCapabilities(String node,
String hash,
String ver) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHashingAlgorithm()
Gets the hashing algorithm used to generate the verification string.
|
String |
getNode()
Gets the node.
|
String |
getVerificationString()
Gets the verification string that is used to verify the identity and supported features of the entity.
|
static String |
getVerificationString(InfoNode infoNode,
MessageDigest messageDigest)
Gets the verification string as specified in XEP-0115, 5.
|
String |
toString() |
compareTo, getPriority, isMandatorypublic static final String NAMESPACE
public static String getVerificationString(InfoNode infoNode, MessageDigest messageDigest)
infoNode - The root node of the service discovery. It has information about the entities features and identities as well as extended service discovery information.messageDigest - The hashing algorithm. Usually this is SHA-1.public final String getHashingAlgorithm()
public final String getNode()
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 String getVerificationString()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.