public final class EntityCapabilities extends StreamFeature
<c/> element in the 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.
|
int |
getPriority() |
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.
|
void |
setHashingAlgorithm(String hash)
Sets the hashing algorithm used to generate the verification string.
|
void |
setNode(String node)
Sets the node.
|
void |
setVerificationString(String verificationString)
Sets the verification string.
|
String |
toString() |
compareTo, 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 String getHashingAlgorithm()
setHashingAlgorithm(String)public void setHashingAlgorithm(String hash)
hash - The verification string.getHashingAlgorithm()public 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).
setNode(String)public void setNode(String node)
node - The node.getNode()public String getVerificationString()
setVerificationString(String)public void setVerificationString(String verificationString)
verificationString - The verification string.getVerificationString()public int getPriority()
getPriority in class StreamFeatureCopyright © 2014 XMPP.rocks. All rights reserved.