public static enum ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol extends Enum<ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol>
Enum Constant and Description |
---|
legacyOpenPGP |
omemoVAxolotl |
openpgpV0
The encryption method specified in XEP-0373: OpenPGP for
XMPP.
|
otrV0 |
Modifier and Type | Method and Description |
---|---|
static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol |
from(String namespace) |
String |
getName() |
String |
getNamespace() |
static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol openpgpV0
public static final ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol otrV0
public static final ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol omemoVAxolotl
public static final ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol legacyOpenPGP
public static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol[] values()
for (ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol c : ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol.values()) System.out.println(c);
public static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getNamespace()
public static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol from(String namespace)