Package com.sap.cds.services.runtime
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 TypeMethodDescriptionget()
Provides theUserInfo
.default void
setPrevious
(UserInfoProvider previous) Passes the latest configuredUserInfoProvider
during configuration phase when this instances gets registered.
-
Method Details
-
get
UserInfo get()Provides theUserInfo
.- Returns:
- the
UserInfo
if available,null
otherwise.
-
setPrevious
Passes the latest configuredUserInfoProvider
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.
-