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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
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 StringgetScope(org.springframework.security.core.Authentication authentication) getSpecificResourcePolicies(String resourceName) protected booleanisAppliedForScope(PolicyAwareGrantedAuthority policyAwareAuthority, String scope)
-
Field Details
-
currentAuthentication
-
extendedEntities
-
-
Constructor Details
-
AuthenticationPolicyStore
public AuthenticationPolicyStore()
-
-
Method Details
-
getRowLevelPolicies
- Specified by:
getRowLevelPoliciesin interfacePolicyStore
-
getEntityResourcePolicies
- Specified by:
getEntityResourcePoliciesin interfacePolicyStore
-
getEntityResourcePoliciesByWildcard
- Specified by:
getEntityResourcePoliciesByWildcardin interfacePolicyStore
-
getEntityAttributesResourcePolicies
public Stream<ResourcePolicy> getEntityAttributesResourcePolicies(MetaClass metaClass, String attribute) - Specified by:
getEntityAttributesResourcePoliciesin interfacePolicyStore
-
getEntityAttributesResourcePoliciesByWildcard
public Stream<ResourcePolicy> getEntityAttributesResourcePoliciesByWildcard(String entityWildcard, String attributeWildcard) - Specified by:
getEntityAttributesResourcePoliciesByWildcardin interfacePolicyStore
-
getSpecificResourcePolicies
- Specified by:
getSpecificResourcePoliciesin interfacePolicyStore
-
getGraphQLResourcePolicies
- Specified by:
getGraphQLResourcePoliciesin 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)
-