public class DtlsFingerprintPacketExtension extends AbstractPacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The XML name of the fingerprint element defined by XEP-0320: Use
of DTLS-SRTP in Jingle Sessions.
|
static java.lang.String |
NAMESPACE
The XML namespace of the fingerprint element defined by
XEP-0320: Use of DTLS-SRTP in Jingle Sessions.
|
attributes
Constructor and Description |
---|
DtlsFingerprintPacketExtension()
Initializes a new DtlsFingerprintPacketExtension instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFingerprint()
Gets the fingerprint carried/represented by this instance.
|
java.lang.String |
getHash()
Gets the hash function utilized to calculate the fingerprint
carried/represented by this instance.
|
boolean |
getRequired()
The required attribute has been removed in version 0.2 of
XEP-0320: Use of DTLS-SRTP in Jingle Sessions.
|
java.lang.String |
getSetup()
Returns value of 'setup' attribute.
|
void |
setFingerprint(java.lang.String fingerprint)
Sets the fingerprint to be carried/represented by this instance.
|
void |
setHash(java.lang.String hash)
Sets the hash function utilized to calculate the fingerprint
carried/represented by this instance.
|
void |
setRequired(boolean required)
The required attribute has been removed in version 0.2 of
XEP-0320: Use of DTLS-SRTP in Jingle Sessions.
|
void |
setSetup(java.lang.String setup)
Sets new value for 'setup' attribute.
|
addChildExtension, addPacket, clone, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getPackets, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String NAMESPACE
public DtlsFingerprintPacketExtension()
public java.lang.String getFingerprint()
public java.lang.String getHash()
public boolean getRequired()
public java.lang.String getSetup()
SETUP_ATTR_NAME
for more
info.public void setFingerprint(java.lang.String fingerprint)
fingerprint
- the fingerprint to be carried/represented by this
instancepublic void setHash(java.lang.String hash)
hash
- the hash function utilized to calculate the fingerprint
carried/represented by this instancepublic void setRequired(boolean required)
public void setSetup(java.lang.String setup)
setup
- see SETUP_ATTR_NAME
for the list of allowed values.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.