Package org.infinispan.spring.session
Class PrincipalNameResolver
- java.lang.Object
-
- org.infinispan.spring.session.PrincipalNameResolver
-
public class PrincipalNameResolver extends Object
Extracts Principal Name from Session. This needs to be done separately since Spring Session is not aware of any authentication mechanism (it is application developer's responsibility to implement it).- Since:
- 9.0
- Author:
- Sebastian Ćaskawiec
- See Also:
FindByIndexNameSessionRepository
-
-
Constructor Summary
Constructors Constructor Description PrincipalNameResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resolvePrincipal(org.springframework.session.Session session)
Resolves Principal Name (e.g.
-
-
-
Method Detail
-
resolvePrincipal
public String resolvePrincipal(org.springframework.session.Session session)
Resolves Principal Name (e.g. user name) based on session.- Parameters:
session
- Session to be checked.- Returns:
- Extracted Principal Name
-
-