Interface Principal


public interface Principal
Русский: Является интерфейсом контекста авторизации в рамках запроса от HTTP сервера Context. Реализация авторизации должна наследовать этот интерфейс.
English: Represents interface of the authorisation context within the request from the HTTP server Context. An authorisation implementation must inherit this interface.
  • Field Details

  • Method Details

    • current

      @Nullable static Principal current()
      Returns:
      Русский: Текущий контекст авторизации в рамках контекста Context текущего HTTP запроса.
      English: The current authorisation context within the context Context of the current HTTP request.
    • current

      @Nullable static Principal current(Context context)
      Returns:
      Русский: Контекст авторизации в рамках переданного контекста Context.
      English: Authorisation context within the passed context Context.
    • set

      @Nullable static Principal set(Context context, Principal principal)
      Returns:
      Русский: Проставляет контекст авторизации в рамках переданного контекста Context HTTP запроса.
      English: Sets the authorisation context within the passed context Context of the HTTP request.