Interface UserInfoProvider


public interface UserInfoProvider
A UserInfoProvider provides the UserInfo for a RequestContext if not provided explicitly. It can get access to the determined AuthenticationInfo from the AuthenticationInfoProvider through CdsRuntime.getProvidedAuthenticationInfo().
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Provides the UserInfo.
    default void
    Passes the latest configured UserInfoProvider during configuration phase when this instances gets registered.
  • Method Details

    • get

      UserInfo get()
      Provides the UserInfo.
      Returns:
      the UserInfo if available, null otherwise.
    • setPrevious

      default void setPrevious(UserInfoProvider previous)
      Passes the latest configured UserInfoProvider during configuration phase when this instances gets registered. The previous provider can be used to build an adapted provider on top.
      Parameters:
      previous - The previously registered provider.