Class PubkeyElement.PubkeyDataElement
- java.lang.Object
-
- org.jivesoftware.smackx.ox.element.PubkeyElement.PubkeyDataElement
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- PubkeyElement
public static class PubkeyElement.PubkeyDataElement extends java.lang.Object implements ExtensionElement
Element that contains the base64 encoded public key.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELEMENT
-
Constructor Summary
Constructors Constructor Description PubkeyDataElement(java.lang.String b64Data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getB64Data()
Base64 encoded public key.java.lang.String
getElementName()
Returns the root element name.java.lang.String
getNamespace()
Returns the root element XML namespace.byte[]
getPubKeyBytes()
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PubkeyDataElement
public PubkeyDataElement(java.lang.String b64Data)
-
-
Method Detail
-
getB64Data
public java.lang.String getB64Data()
Base64 encoded public key.- Returns:
- the base64 encoded version of the public key.
-
getPubKeyBytes
public byte[] getPubKeyBytes()
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-