public class ExplicitMessageEncryptionElement extends Object implements ExtensionElement
Modifier and Type | Class and Description |
---|---|
static class |
ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol |
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
Constructor and Description |
---|
ExplicitMessageEncryptionElement(ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol protocol) |
ExplicitMessageEncryptionElement(String encryptionNamespace) |
ExplicitMessageEncryptionElement(String encryptionNamespace,
String name) |
Modifier and Type | Method and Description |
---|---|
static ExplicitMessageEncryptionElement |
from(Message message) |
String |
getElementName()
Returns the root element name.
|
String |
getEncryptionNamespace() |
String |
getName()
Get the optional name of the encryption method.
|
String |
getNamespace()
Returns the root element XML namespace.
|
ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol |
getProtocol() |
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT
public static final String NAMESPACE
public ExplicitMessageEncryptionElement(ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol protocol)
public ExplicitMessageEncryptionElement(String encryptionNamespace)
public ExplicitMessageEncryptionElement(String encryptionNamespace, String name)
public ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol getProtocol()
public String getEncryptionNamespace()
public String getName()
null
.public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element
public static ExplicitMessageEncryptionElement from(Message message)