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>

public class PrincipalNameIndexResolver<S extends Session> extends SingleIndexResolver<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 Details

    • PrincipalNameIndexResolver

      public PrincipalNameIndexResolver()
    • PrincipalNameIndexResolver

      public PrincipalNameIndexResolver(String indexName)
      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