Class SecurityContextService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAuthenticatedPrincipalLoggedUser()
      Checks type of SecurityContext
      void reloadSecurityContext​(LoggedUser loggedUser)
      Reloads the security context according to currently logged user
      void saveToken​(java.lang.String token)
      Saves token to the cache if the state of context object was changed and needs to be updated
      • Methods inherited from class java.lang.Object

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

      • SecurityContextService

        protected SecurityContextService()
    • Method Detail

      • saveToken

        public void saveToken​(java.lang.String token)
        Saves token to the cache if the state of context object was changed and needs to be updated
        Specified by:
        saveToken in interface ISecurityContextService
        Parameters:
        token - the token string to be cached
      • reloadSecurityContext

        public void reloadSecurityContext​(LoggedUser loggedUser)
        Reloads the security context according to currently logged user
        Specified by:
        reloadSecurityContext in interface ISecurityContextService
        Parameters:
        loggedUser - the user whose context needs to be reloaded