Interface Subject

All Known Subinterfaces:
PluginSubject, UserSubject
All Known Implementing Classes:
NoopPluginSubject, NoopSubject

@ExperimentalApi public interface Subject
An individual, process, or device that causes information to flow among objects or change to the system state.
Opensearch.experimental:
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the application-wide uniquely identifying principal
    default <T> T
    runAs(Callable<T> callable)
    runAs allows the caller to run a callable function as this subject
  • Method Details

    • getPrincipal

      Principal getPrincipal()
      Get the application-wide uniquely identifying principal
    • runAs

      default <T> T runAs(Callable<T> callable) throws Exception
      runAs allows the caller to run a callable function as this subject
      Throws:
      Exception