public class Attribute
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
API_METHOD_CONFIG
A
ApiMethodConfig with the current API method's
configuration. |
static java.lang.String |
AUTH_TOKEN
A
String with the current request's auth token. |
static java.lang.String |
AUTHENTICATED_APPENGINE_USER
A
User with the currently authenticated App Engine user. |
static java.lang.String |
ENABLE_CLIENT_ID_WHITELIST
A
Boolean indicating if client id whitelist should be checked. |
static java.lang.String |
ID_TOKEN
If set, contains a cached instance of a parsed and valid JWT
GoogleIdToken corresponding to the String
token in the AUTH_TOKEN "endpoints:Auth-Token" attribute. |
static java.lang.String |
REQUIRE_APPENGINE_USER
A
Boolean indicating if the App Engine user should be populated. |
static java.lang.String |
RESTRICT_SERVLET
Deprecated.
|
static java.lang.String |
SKIP_TOKEN_AUTH
A
Boolean indicating if token-based authentications (OAuth2 and JWT) should be skipped. |
static java.lang.String |
TOKEN_INFO
If set, contains a cached OAuth2
GoogleAuth.TokenInfo
corresponding to the String token in the AUTH_TOKEN "endpoints:Auth-Token"
attribute. |
| Modifier and Type | Method and Description |
|---|---|
static Attribute |
bindStandardRequestAttributes(javax.servlet.http.HttpServletRequest request,
ApiMethodConfig methodConfig,
ServletInitializationParameters initParameters) |
static Attribute |
from(javax.servlet.http.HttpServletRequest request) |
<T> T |
get(java.lang.String attr) |
boolean |
isEnabled(java.lang.String attr) |
void |
remove(java.lang.String attr) |
void |
set(java.lang.String attr,
java.lang.Object value) |
public static final java.lang.String AUTHENTICATED_APPENGINE_USER
User with the currently authenticated App Engine user.public static final java.lang.String API_METHOD_CONFIG
ApiMethodConfig with the current API method's
configuration.public static final java.lang.String ENABLE_CLIENT_ID_WHITELIST
Boolean indicating if client id whitelist should be checked.public static final java.lang.String RESTRICT_SERVLET
public static final java.lang.String REQUIRE_APPENGINE_USER
Boolean indicating if the App Engine user should be populated.public static final java.lang.String SKIP_TOKEN_AUTH
Boolean indicating if token-based authentications (OAuth2 and JWT) should be skipped.public static final java.lang.String AUTH_TOKEN
String with the current request's auth token.public static final java.lang.String TOKEN_INFO
GoogleAuth.TokenInfo
corresponding to the String token in the AUTH_TOKEN "endpoints:Auth-Token"
attribute.
The authentication from GoogleOAuth2Authenticator might
have failed anyway because of unauthorized client id or scopes.public static final java.lang.String ID_TOKEN
GoogleIdToken corresponding to the String
token in the AUTH_TOKEN "endpoints:Auth-Token" attribute.
The authentication from GoogleJwtAuthenticator might
have failed anyway because of unauthorized client id or audience.public static Attribute from(javax.servlet.http.HttpServletRequest request)
public <T> T get(java.lang.String attr)
public void set(java.lang.String attr,
java.lang.Object value)
public void remove(java.lang.String attr)
public boolean isEnabled(java.lang.String attr)
public static Attribute bindStandardRequestAttributes(javax.servlet.http.HttpServletRequest request, ApiMethodConfig methodConfig, ServletInitializationParameters initParameters)