Class SidRetrievalStrategyImpl
- java.lang.Object
-
- org.springframework.security.acls.domain.SidRetrievalStrategyImpl
-
- All Implemented Interfaces:
SidRetrievalStrategy
public class SidRetrievalStrategyImpl extends java.lang.Object implements SidRetrievalStrategy
Basic implementation ofSidRetrievalStrategy
that creates aSid
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 anyGrantedAuthoritySid
elements.
-
-
Constructor Summary
Constructors Constructor Description SidRetrievalStrategyImpl()
SidRetrievalStrategyImpl(RoleHierarchy roleHierarchy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Sid>
getSids(Authentication authentication)
-
-
-
Constructor Detail
-
SidRetrievalStrategyImpl
public SidRetrievalStrategyImpl()
-
SidRetrievalStrategyImpl
public SidRetrievalStrategyImpl(RoleHierarchy roleHierarchy)
-
-
Method Detail
-
getSids
public java.util.List<Sid> getSids(Authentication authentication)
- Specified by:
getSids
in interfaceSidRetrievalStrategy
-
-