Package org.springframework.session
Class PrincipalNameIndexResolver<S extends Session>
java.lang.Object
org.springframework.session.SingleIndexResolver<S>
org.springframework.session.PrincipalNameIndexResolver<S>
- Type Parameters:
S
- the type of Session being handled
- All Implemented Interfaces:
IndexResolver<S>
IndexResolver
to resolve the principal name from session attribute named
FindByIndexNameSessionRepository.PRINCIPAL_NAME_INDEX_NAME
or Spring Security
context stored in the session under SPRING_SECURITY_CONTEXT
attribute.- Since:
- 2.2.0
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.session.SingleIndexResolver
getIndexName, resolveIndexesFor
-
Constructor Details
-
PrincipalNameIndexResolver
public PrincipalNameIndexResolver()
-
-
Method Details
-
resolveIndexValueFor
- Specified by:
resolveIndexValueFor
in classSingleIndexResolver<S extends Session>
-