Package org.chenile.security
Class SecurityServiceImpl
java.lang.Object
org.chenile.security.SecurityServiceImpl
- All Implemented Interfaces:
SecurityService
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) org.slf4j.Logger
static final String
(package private) SecurityConfigService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
boolean
boolean
private static Object
extractPrincipal
(org.springframework.security.core.Authentication authentication) private Collection<org.springframework.security.core.GrantedAuthority>
String[]
private static boolean
guardingAuthoritiesFoundInCurrentAuthorities
(String[] guardingAuthorities, String[] currentAuthorities) private String
-
Field Details
-
logger
org.slf4j.Logger logger -
securityConfigService
-
SCOPE_PREFIX
- See Also:
-
-
Constructor Details
-
SecurityServiceImpl
public SecurityServiceImpl()
-
-
Method Details
-
getAuthorities
-
getCurrentUserLogin
-
extractPrincipal
private static Object extractPrincipal(org.springframework.security.core.Authentication authentication) -
toS
-
debug
-
getCurrentAuthorities
- Specified by:
getCurrentAuthorities
in interfaceSecurityService
-
doesCurrentUserHaveGuardingAuthorities
- Specified by:
doesCurrentUserHaveGuardingAuthorities
in interfaceSecurityService
-
doesCurrentUserHaveGuardingAuthorities
- Specified by:
doesCurrentUserHaveGuardingAuthorities
in interfaceSecurityService
-
guardingAuthoritiesFoundInCurrentAuthorities
-