Class AuthenticationUiPolicyStore
java.lang.Object
io.jmix.securityui.impl.constraint.AuthenticationUiPolicyStore
- All Implemented Interfaces:
UiPolicyStore
@Component("sec_AuthenticationUiPolicyStore")
public class AuthenticationUiPolicyStore
extends Object
implements UiPolicyStore
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Stream<T>
getMenuResourcePolicies
(String menuId) protected String
getScope
(org.springframework.security.core.Authentication authentication) getScreenResourcePolicies
(String windowId) protected boolean
isAppliedForScope
(PolicyAwareGrantedAuthority policyAwareAuthority, String scope)
-
Field Details
-
currentAuthentication
-
-
Constructor Details
-
AuthenticationUiPolicyStore
public AuthenticationUiPolicyStore()
-
-
Method Details
-
getScreenResourcePolicies
- Specified by:
getScreenResourcePolicies
in interfaceUiPolicyStore
-
getMenuResourcePolicies
- Specified by:
getMenuResourcePolicies
in interfaceUiPolicyStore
-
extractFromAuthenticationByScope
protected <T> Stream<T> extractFromAuthenticationByScope(Function<PolicyAwareGrantedAuthority, Stream<T>> extractor) -
getScope
@Nullable protected String getScope(org.springframework.security.core.Authentication authentication) -
isAppliedForScope
protected boolean isAppliedForScope(PolicyAwareGrantedAuthority policyAwareAuthority, @Nullable String scope)
-