Class 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 Detail

      • PrincipalNameResolver

        public PrincipalNameResolver()
    • 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