public class SecurityUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.security.core.GrantedAuthority |
createGroupAuthority(String groupId) |
static org.springframework.security.core.GrantedAuthority |
createTenantAuthority(String tenantId) |
static SecurityScope |
getAuthenticatedSecurityScope() |
static SecurityScope |
getCurrentSecurityScope() |
static String |
getCurrentUserId()
Get the login of the current user.
|
static SecurityScope |
getSecurityScope(org.springframework.security.core.Authentication authentication) |
static void |
setSecurityScopeProvider(SecurityScopeProvider securityScopeProvider) |
public static org.springframework.security.core.GrantedAuthority createTenantAuthority(String tenantId)
public static org.springframework.security.core.GrantedAuthority createGroupAuthority(String groupId)
public static void setSecurityScopeProvider(SecurityScopeProvider securityScopeProvider)
public static String getCurrentUserId()
public static SecurityScope getCurrentSecurityScope()
public static SecurityScope getSecurityScope(org.springframework.security.core.Authentication authentication)
public static SecurityScope getAuthenticatedSecurityScope()
Copyright © 2022 Flowable. All rights reserved.