public static enum MailConfig.PasswordSource extends java.lang.Enum<MailConfig.PasswordSource>
| Enum Constant and Description |
|---|
GLOBAL
Password is taken from appropriate property
|
SESSION
Password is equal to session password
|
| Modifier and Type | Method and Description |
|---|---|
static MailConfig.PasswordSource |
parse(java.lang.String passwordSourceStr)
Parses specified string into a password source.
|
java.lang.String |
toString() |
static MailConfig.PasswordSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MailConfig.PasswordSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailConfig.PasswordSource GLOBAL
public static final MailConfig.PasswordSource SESSION
public static MailConfig.PasswordSource[] values()
for (MailConfig.PasswordSource c : MailConfig.PasswordSource.values()) System.out.println(c);
public static MailConfig.PasswordSource valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic static final MailConfig.PasswordSource parse(java.lang.String passwordSourceStr)
passwordSourceStr - The string to parse to a password sourcenull if string could not be parsed to a password sourcepublic java.lang.String toString()
toString in class java.lang.Enum<MailConfig.PasswordSource>