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