Class AuthoritiesUpdater

  • All Implemented Interfaces:
    org.springframework.security.web.context.SecurityContextRepository

    @Service
    public class AuthoritiesUpdater
    extends org.springframework.security.web.context.HttpSessionSecurityContextRepository
    • Field Summary

      • Fields inherited from class org.springframework.security.web.context.HttpSessionSecurityContextRepository

        SPRING_SECURITY_CONTEXT_KEY
    • Constructor Detail

      • AuthoritiesUpdater

        public AuthoritiesUpdater()
    • Method Detail

      • addRole

        public void addRole​(String id,
                            org.springframework.security.core.GrantedAuthority role)
      • addRole

        public void addRole​(org.springframework.security.core.GrantedAuthority role)
      • removeRole

        public void removeRole​(String id,
                               org.springframework.security.core.GrantedAuthority role)
      • removeRole

        public void removeRole​(org.springframework.security.core.GrantedAuthority role)