public class OpenPgpElement extends Object implements ExtensionElement
SignElement
,
SigncryptElement
, CryptElement
).Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
Constructor and Description |
---|
OpenPgpElement(String base64EncodedOpenPgpMessage) |
Modifier and Type | Method and 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.
|
InputStream |
toInputStream() |
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT
public static final String NAMESPACE
public OpenPgpElement(String base64EncodedOpenPgpMessage)
public InputStream toInputStream()
public String getEncryptedBase64MessageContent()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element
public static OpenPgpElement fromStanza(Stanza stanza)