Package discord4j.rest.http.client
Enum AuthorizationScheme
- java.lang.Object
-
- java.lang.Enum<AuthorizationScheme>
-
- discord4j.rest.http.client.AuthorizationScheme
-
- All Implemented Interfaces:
Serializable,Comparable<AuthorizationScheme>
public enum AuthorizationScheme extends Enum<AuthorizationScheme>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetScheme()static AuthorizationSchemevalueOf(String name)Returns the enum constant of this type with the specified name.static AuthorizationScheme[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOT
public static final AuthorizationScheme BOT
-
BEARER
public static final AuthorizationScheme BEARER
-
BASIC
public static final AuthorizationScheme BASIC
-
NONE
public static final AuthorizationScheme NONE
-
-
Method Detail
-
values
public static AuthorizationScheme[] 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 (AuthorizationScheme c : AuthorizationScheme.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationScheme 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
-
getScheme
public String getScheme()
-
-