Class SidRetrievalStrategyImpl

  • All Implemented Interfaces:
    SidRetrievalStrategy

    public class SidRetrievalStrategyImpl
    extends java.lang.Object
    implements SidRetrievalStrategy
    Basic implementation of SidRetrievalStrategy that creates a Sid for the principal, as well as every granted authority the principal holds. Can optionally have a RoleHierarchy injected in order to determine the extended list of authorities that the principal is assigned.

    The returned array will always contain the PrincipalSid before any GrantedAuthoritySid elements.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Sid> getSids​(org.springframework.security.core.Authentication authentication)  
      • Methods inherited from class java.lang.Object

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

      • SidRetrievalStrategyImpl

        public SidRetrievalStrategyImpl()
      • SidRetrievalStrategyImpl

        public SidRetrievalStrategyImpl​(org.springframework.security.access.hierarchicalroles.RoleHierarchy roleHierarchy)
    • Method Detail

      • getSids

        public java.util.List<Sid> getSids​(org.springframework.security.core.Authentication authentication)
        Specified by:
        getSids in interface SidRetrievalStrategy