Class PrincipalNameResolver


  • public class PrincipalNameResolver
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String resolvePrincipal​(org.springframework.session.Session session)
      Resolves Principal Name (e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrincipalNameResolver

        public PrincipalNameResolver()
    • Method Detail

      • resolvePrincipal

        public java.lang.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