Package io.jmix.security.impl.constraint
Class AuthenticationPolicyStore
java.lang.Object
io.jmix.security.impl.constraint.AuthenticationPolicyStore
- All Implemented Interfaces:
PolicyStore
@Component("sec_AuthenticationPolicyStore")
public class AuthenticationPolicyStore
extends Object
implements PolicyStore
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Stream<T>
extractFromAuthentication
(Function<PolicyAwareGrantedAuthority, Stream<T>> extractor) protected <T> Stream<T>
getEntityAttributesResourcePolicies
(MetaClass metaClass, String attribute) getEntityAttributesResourcePoliciesByWildcard
(String entityWildcard, String attributeWildcard) getEntityResourcePolicies
(MetaClass metaClass) getEntityResourcePoliciesByWildcard
(String wildcard) getGraphQLResourcePolicies
(String resourceName) getRowLevelPolicies
(MetaClass metaClass) protected String
getScope
(org.springframework.security.core.Authentication authentication) getSpecificResourcePolicies
(String resourceName) protected boolean
isAppliedForScope
(PolicyAwareGrantedAuthority policyAwareAuthority, String scope)
-
Field Details
-
currentAuthentication
-
extendedEntities
-
-
Constructor Details
-
AuthenticationPolicyStore
public AuthenticationPolicyStore()
-
-
Method Details
-
getRowLevelPolicies
- Specified by:
getRowLevelPolicies
in interfacePolicyStore
-
getEntityResourcePolicies
- Specified by:
getEntityResourcePolicies
in interfacePolicyStore
-
getEntityResourcePoliciesByWildcard
- Specified by:
getEntityResourcePoliciesByWildcard
in interfacePolicyStore
-
getEntityAttributesResourcePolicies
public Stream<ResourcePolicy> getEntityAttributesResourcePolicies(MetaClass metaClass, String attribute) - Specified by:
getEntityAttributesResourcePolicies
in interfacePolicyStore
-
getEntityAttributesResourcePoliciesByWildcard
public Stream<ResourcePolicy> getEntityAttributesResourcePoliciesByWildcard(String entityWildcard, String attributeWildcard) - Specified by:
getEntityAttributesResourcePoliciesByWildcard
in interfacePolicyStore
-
getSpecificResourcePolicies
- Specified by:
getSpecificResourcePolicies
in interfacePolicyStore
-
getGraphQLResourcePolicies
- Specified by:
getGraphQLResourcePolicies
in interfacePolicyStore
-
extractFromAuthenticationByScope
protected <T> Stream<T> extractFromAuthenticationByScope(Function<PolicyAwareGrantedAuthority, Stream<T>> extractor) -
extractFromAuthentication
protected <T> Stream<T> extractFromAuthentication(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)
-