sk.baka.webvm.config
Enum EncryptionEnum

java.lang.Object
  extended by java.lang.Enum<EncryptionEnum>
      extended by sk.baka.webvm.config.EncryptionEnum
All Implemented Interfaces:
Serializable, Comparable<EncryptionEnum>

public enum EncryptionEnum
extends Enum<EncryptionEnum>

The encryption enum.

Author:
Martin Vysny

Enum Constant Summary
NONE
          No security.
SSL
          SSL security.
TLS
          TLS security.
 
Method Summary
abstract  void activate(org.apache.commons.mail.Email mail)
          Activates given security on given mail.
static EncryptionEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EncryptionEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final EncryptionEnum NONE
No security.


TLS

public static final EncryptionEnum TLS
TLS security.


SSL

public static final EncryptionEnum SSL
SSL security.

Method Detail

values

public static EncryptionEnum[] 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 (EncryptionEnum c : EncryptionEnum.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EncryptionEnum 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 name
NullPointerException - if the argument is null

activate

public abstract void activate(org.apache.commons.mail.Email mail)
Activates given security on given mail.

Parameters:
mail - activate security on this mail.


Copyright © 2010 Baka. All Rights Reserved.