Package de.xima.fc.mdl.enums
Enum EMailSecurityType
- java.lang.Object
-
- java.lang.Enum<EMailSecurityType>
-
- de.xima.fc.mdl.enums.EMailSecurityType
-
- All Implemented Interfaces:
INamedUiElement,Serializable,Comparable<EMailSecurityType>
public enum EMailSecurityType extends Enum<EMailSecurityType> implements INamedUiElement
Specifies the available types of email security for message transmission.This enum is used to indicate the security protocol applied to email messages. Supported types include no security, S/MIME encryption/signing, and (deprecated) PGP.
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription(Locale locale)StringgetDisplayName(Locale locale)The display name of this element in the given locale.static EMailSecurityTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EMailSecurityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final EMailSecurityType NONE
No email security is applied. Emails are sent without encryption or signing.
-
SMIME
public static final EMailSecurityType SMIME
S/MIME is used for email encryption and signing.
-
PGP
@Deprecated public static final EMailSecurityType PGP
Deprecated.PGP is used for email encryption and signing.Deprecated: PGP support is no longer maintained and should not be used.
-
-
Method Detail
-
values
public static EMailSecurityType[] 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 (EMailSecurityType c : EMailSecurityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EMailSecurityType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getDisplayName
public String getDisplayName(Locale locale)
Description copied from interface:INamedUiElementThe display name of this element in the given locale.- Specified by:
getDisplayNamein interfaceINamedUiElement- Parameters:
locale- The locale to get the display name for.- Returns:
- The display name of this element in the given locale.
-
-