public final class SecurityConstants extends Object
Modifier and Type | Field and Description |
---|---|
static Metadata.Key<String> |
AUTHORIZATION_HEADER
A convenience constant that contains the key for the HTTP Authorization Header.
|
static String |
BASIC_AUTH_PREFIX
The prefix for basic auth as used in the
AUTHORIZATION_HEADER . |
static String |
BEARER_AUTH_PREFIX
The prefix for bearer auth as used in the
AUTHORIZATION_HEADER . |
public static final Metadata.Key<String> AUTHORIZATION_HEADER
public static final String BASIC_AUTH_PREFIX
AUTHORIZATION_HEADER
. This library assumes that the both the
username and password are UTF_8
encoded before being turned into a base64 string.public static final String BEARER_AUTH_PREFIX
AUTHORIZATION_HEADER
.