Class PubkeyElement
- java.lang.Object
-
- org.jivesoftware.smackx.ox.element.PubkeyElement
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class PubkeyElement extends Object implements ExtensionElement
Class representing a pubkey element which is used to transport OpenPGP public keys.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PubkeyElement.PubkeyDataElement
Element that contains the base64 encoded public key.
-
Constructor Summary
Constructors Constructor Description PubkeyElement(PubkeyElement.PubkeyDataElement dataElement, Date date)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubkeyElement.PubkeyDataElement
getDataElement()
Return the <data> element containing the base64 encoded public key.Date
getDate()
Date on which the key was last modified.String
getElementName()
Returns the root element name.String
getNamespace()
Returns the root element XML namespace.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
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
ATTR_DATE
public static final String ATTR_DATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PubkeyElement
public PubkeyElement(PubkeyElement.PubkeyDataElement dataElement, Date date)
-
-
Method Detail
-
getDataElement
public PubkeyElement.PubkeyDataElement getDataElement()
Return the <data> element containing the base64 encoded public key.- Returns:
- data element
-
getDate
public Date getDate()
Date on which the key was last modified.- Returns:
- last modification date
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-