public static enum Imap.Authentication extends java.lang.Enum<Imap.Authentication>
Modifier and Type | Field and Description |
---|---|
int |
code |
Modifier and Type | Method and Description |
---|---|
abstract void |
apply(Imap client) |
static Imap.Authentication |
authenticationFor(int code) |
static Imap.Authentication |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Imap.Authentication[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Imap.Authentication BASIC
public static final Imap.Authentication CRAM_MD5
public static final Imap.Authentication XOAUTH2
public static Imap.Authentication[] values()
for (Imap.Authentication c : Imap.Authentication.values()) System.out.println(c);
public static Imap.Authentication 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 Imap.Authentication authenticationFor(int code)
public abstract void apply(Imap client) throws ImapException
ImapException
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved