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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Stream<T>getMenuResourcePolicies(String menuId) protected StringgetScope(org.springframework.security.core.Authentication authentication) getScreenResourcePolicies(String windowId) protected booleanisAppliedForScope(PolicyAwareGrantedAuthority policyAwareAuthority, String scope)
-
Field Details
-
currentAuthentication
-
-
Constructor Details
-
AuthenticationUiPolicyStore
public AuthenticationUiPolicyStore()
-
-
Method Details
-
getScreenResourcePolicies
- Specified by:
getScreenResourcePoliciesin interfaceUiPolicyStore
-
getMenuResourcePolicies
- Specified by:
getMenuResourcePoliciesin 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)
-