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
ConstructorDescriptionPrincipalNameIndexResolver
(String indexName) Create a new instance specifying the name of the index to be resolved. -
Method Summary
Methods inherited from class org.springframework.session.SingleIndexResolver
getIndexName, resolveIndexesFor
-
Constructor Details
-
PrincipalNameIndexResolver
public PrincipalNameIndexResolver() -
PrincipalNameIndexResolver
Create a new instance specifying the name of the index to be resolved.- Parameters:
indexName
- the name of the index to be resolved- Since:
- 3.3
-
-
Method Details
-
resolveIndexValueFor
- Specified by:
resolveIndexValueFor
in classSingleIndexResolver<S extends Session>
-