Package com.sap.cds.services.runtime
Interface AuthenticationInfoProvider
public interface AuthenticationInfoProvider
A
AuthenticationInfoProvider
provides the AuthenticationInfo
of the request.
This is usually interpreted by a UserInfoProvider
to extract the user information from the authentication.
The AuthenticationInfo
might be used directly to implement principal propagation of the raw authentication context.-
Method Summary
Modifier and TypeMethodDescriptionget()
Provides theAuthenticationInfo
.default void
setPrevious
(AuthenticationInfoProvider previous) Passes the latest configuredAuthenticationInfoProvider
during configuration phase when this instances gets registered.
-
Method Details
-
get
AuthenticationInfo get()Provides theAuthenticationInfo
.- Returns:
- the
AuthenticationInfo
if available,null
otherwise.
-
setPrevious
Passes the latest configuredAuthenticationInfoProvider
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.
-