Class OpenPgpElement
- java.lang.Object
-
- org.jivesoftware.smackx.ox.element.OpenPgpElement
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class OpenPgpElement extends Object implements ExtensionElement
Class that represents an OpenPGP message. The content of this elements text is an base64 encoded , OpenPGP encrypted/signed content element (SignElement
,SigncryptElement
,CryptElement
).
-
-
Constructor Summary
Constructors Constructor Description OpenPgpElement(String base64EncodedOpenPgpMessage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpenPgpElement
fromStanza(Stanza stanza)
String
getElementName()
Returns the root element name.String
getEncryptedBase64MessageContent()
Return the OpenPGP encrypted payload.String
getNamespace()
Returns the root element XML namespace.QName
getQName()
InputStream
toInputStream()
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
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OpenPgpElement
public OpenPgpElement(String base64EncodedOpenPgpMessage)
-
-
Method Detail
-
toInputStream
public InputStream toInputStream()
-
getEncryptedBase64MessageContent
public String getEncryptedBase64MessageContent()
Return the OpenPGP encrypted payload.- Returns:
- OpenPGP encrypted payload.
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getQName
public QName getQName()
- Specified by:
getQName
in interfaceFullyQualifiedElement
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
fromStanza
public static OpenPgpElement fromStanza(Stanza stanza)
-
-