Package net.ltgt.oidc.servlet
Interface UserPrincipalFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Creates instances of
UserPrincipal to be exposed as requests' principal.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateUserPrincipal(SessionInfo sessionInfo, HttpSession session) Called on each request by theUserFilterto create theUserPrincipalfor the authenticated user; that will be exposed downward the filter chain as the request's principal.default voiduserAuthenticated(SessionInfo sessionInfo, HttpSession session) Called by theCallbackServletwhen the user is successfully authenticated to load additional user data into the session, that can be used bycreateUserPrincipal(net.ltgt.oidc.servlet.SessionInfo, jakarta.servlet.http.HttpSession)when creating the principal.
-
Field Details
-
CONTEXT_ATTRIBUTE_NAME
-
-
Method Details
-
createUserPrincipal
Called on each request by theUserFilterto create theUserPrincipalfor the authenticated user; that will be exposed downward the filter chain as the request's principal.This method can use data put in the session by
userAuthenticated(net.ltgt.oidc.servlet.SessionInfo, jakarta.servlet.http.HttpSession)to expose in a customUserPrincipalimplementation. -
userAuthenticated
Called by theCallbackServletwhen the user is successfully authenticated to load additional user data into the session, that can be used bycreateUserPrincipal(net.ltgt.oidc.servlet.SessionInfo, jakarta.servlet.http.HttpSession)when creating the principal.
-