public static enum AuthorizationHeader.Type extends Enum<AuthorizationHeader.Type>
| Enum Constant and Description |
|---|
BASIC
The value is
"Basic " + base64(username + ":" + password) where username and
password are configurations from MP Config, prefixed as defined with AuthorizationHeader.confPrefix(). |
BEARER
The value is
"Bearer " + bearer where bearer is a configurations from MP Config,
prefixed as defined with AuthorizationHeader.confPrefix(). |
| Modifier and Type | Method and Description |
|---|---|
static AuthorizationHeader.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthorizationHeader.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorizationHeader.Type BASIC
"Basic " + base64(username + ":" + password) where username and
password are configurations from MP Config, prefixed as defined with AuthorizationHeader.confPrefix().public static final AuthorizationHeader.Type BEARER
"Bearer " + bearer where bearer is a configurations from MP Config,
prefixed as defined with AuthorizationHeader.confPrefix().public static AuthorizationHeader.Type[] values()
for (AuthorizationHeader.Type c : AuthorizationHeader.Type.values()) System.out.println(c);
public static AuthorizationHeader.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018–2020. All rights reserved.