Enum ImapReader.AuthMethod
- java.lang.Object
-
- java.lang.Enum<ImapReader.AuthMethod>
-
- com.openindex.openestate.tool.mail.io.ImapReader.AuthMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<ImapReader.AuthMethod>
- Enclosing class:
- ImapReader
public static enum ImapReader.AuthMethod extends Enum<ImapReader.AuthMethod>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANONYMOUS
CRAM_MD5
DIGEST_MD5
LOGIN
PLAIN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImapReader.AuthMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImapReader.AuthMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANONYMOUS
public static final ImapReader.AuthMethod ANONYMOUS
-
PLAIN
public static final ImapReader.AuthMethod PLAIN
-
LOGIN
public static final ImapReader.AuthMethod LOGIN
-
CRAM_MD5
public static final ImapReader.AuthMethod CRAM_MD5
-
DIGEST_MD5
public static final ImapReader.AuthMethod DIGEST_MD5
-
-
Method Detail
-
values
public static ImapReader.AuthMethod[] 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 (ImapReader.AuthMethod c : ImapReader.AuthMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImapReader.AuthMethod 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
-
-