Package rocks.xmpp.extensions.hashes
Class CryptographicHashFunctionsProtocol
- java.lang.Object
-
- rocks.xmpp.extensions.hashes.CryptographicHashFunctionsProtocol
-
- All Implemented Interfaces:
ExtensionProtocol
,DiscoverableInfo
public final class CryptographicHashFunctionsProtocol extends Object implements ExtensionProtocol, DiscoverableInfo
Represents the XEP-0300: Use of Cryptographic Hash Functions in XMPP.
-
-
Constructor Summary
Constructors Constructor Description CryptographicHashFunctionsProtocol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getFeatures()
Gets the features.String
getNamespace()
The protocol's main namespace.boolean
isEnabled()
Indicates whether this protocol is enabled.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface rocks.xmpp.extensions.disco.model.info.DiscoverableInfo
getExtensions, getIdentities
-
-
-
-
Method Detail
-
getNamespace
public final String getNamespace()
The protocol's main namespace. This is used to uniquely identify the extension protocol.- Specified by:
getNamespace
in interfaceExtensionProtocol
- Returns:
- "urn:xmpp:hashes:2"
-
isEnabled
public final boolean isEnabled()
Description copied from interface:ExtensionProtocol
Indicates whether this protocol is enabled.- Specified by:
isEnabled
in interfaceExtensionProtocol
- Returns:
- true, if enabled; false if disabled.
-
getFeatures
public final Set<String> getFeatures()
Description copied from interface:DiscoverableInfo
Gets the features.- Specified by:
getFeatures
in interfaceDiscoverableInfo
- Returns:
- The features.
-
-