Class OidcSessionInformation
java.lang.Object
org.springframework.security.core.session.SessionInformation
org.springframework.security.oauth2.client.oidc.session.OidcSessionInformation
- All Implemented Interfaces:
Serializable
A
SessionInformation extension that enforces the principal be of type
OidcUser.- Since:
- 6.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAny material needed to authorize operations on this session.withSessionId(String sessionId) Copy thisOidcSessionInformation, using a new session identifier.Methods inherited from class SessionInformation
expireNow, getLastRequest, getSessionId, isExpired, refreshLastRequest
-
Constructor Details
-
OidcSessionInformation
-
-
Method Details
-
getAuthorities
-
getPrincipal
- Overrides:
getPrincipalin classSessionInformation
-
withSessionId
Copy thisOidcSessionInformation, using a new session identifier.- Parameters:
sessionId- the new session identifier to use- Returns:
- a new
OidcSessionInformationinstance
-