# Authenticator

com.google.api.server.spi.config

## Interface Authenticator

-

  *** ** * ** ***

  <br />

  ```
  public interface Authenticator
  ```
  Interface for Endpoints authenticators. To create a custom authenticator, implement and assign your authenticator class in the `authenticator` configuration property.
-
  -

    ### Method Summary

    | Modifier and Type | Method and Description |
    |---|---|
    | `User` | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/Authenticator.html#authenticate-HttpServletRequest-(HttpServletRequest request)` Authenticates the user from `request`. |
    [All Methods Instance Methods Abstract Methods]

-
  -

    ### Method Detail


    -

      #### authenticate

      ```
      User authenticate(HttpServletRequest request)
                 throws ServiceException
      ```
      Authenticates the user from `request`.

      Returns:
      :   The authenticated user or null if there is no auth or auth has failed.

      Throws:
      :   `ServiceException`