Enum ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol
- java.lang.Object
-
- java.lang.Enum<ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol>
-
- org.jivesoftware.smackx.eme.element.ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol>
- Enclosing class:
- ExplicitMessageEncryptionElement
public static enum ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol extends java.lang.Enum<ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description legacyOpenPGP
omemoVAxolotl
openpgpV0
The encryption method specified in XEP-0373: OpenPGP for XMPP.otrV0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol
from(java.lang.String namespace)
java.lang.String
getName()
java.lang.String
getNamespace()
static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
openpgpV0
public static final ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol openpgpV0
The encryption method specified in XEP-0373: OpenPGP for XMPP.
-
otrV0
public static final ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol otrV0
-
omemoVAxolotl
public static final ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol omemoVAxolotl
-
legacyOpenPGP
public static final ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol legacyOpenPGP
-
-
Method Detail
-
values
public static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol c : ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNamespace
public java.lang.String getNamespace()
-
getName
public java.lang.String getName()
-
from
public static ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol from(java.lang.String namespace)
-
-