public class Authenticator
extends java.lang.Object
UserInfo object based on the claims contained in the
auth token.| Modifier and Type | Method and Description |
|---|---|
UserInfo |
authenticate(javax.servlet.http.HttpServletRequest httpServletRequest,
com.google.api.control.model.MethodRegistry.AuthInfo authInfo,
java.lang.String serviceName)
Authenticate the current HTTP request.
|
static Authenticator |
create()
Create an instance of
Authenticator using the service configuration fetched from Google
Service Management APIs. |
public UserInfo authenticate(javax.servlet.http.HttpServletRequest httpServletRequest, com.google.api.control.model.MethodRegistry.AuthInfo authInfo, java.lang.String serviceName)
httpServletRequest - is the incoming HTTP request object.authInfo - contains authentication configurations of the API method being called.serviceName - is the name of this service.UserInfo object representing the identity of the caller.public static Authenticator create()
Authenticator using the service configuration fetched from Google
Service Management APIs.Authenticatorjava.lang.IllegalArgumentException - if the authentication message is not defined in the
fetched service config.