Class RbacUtils.PreliminaryRbacRules<T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation>
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.server.apps.security.RbacUtils.PreliminaryRbacRules<T>
- Type Parameters:
T- the target information type
- Enclosing class:
RbacUtils
private static class RbacUtils.PreliminaryRbacRules<T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation>
extends Object
A preliminary set of RBAC rules that potentially need to be joined with further, so far unknown rules.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAll(org.eclipse.digitaltwin.basyx.authorization.rules.rbac.backend.inmemory.InMemoryAuthorizationRbacStorage rbacStorage) Adds all collected rules torbacStorage.private voidaddRule(String role, List<org.eclipse.digitaltwin.basyx.authorization.rbac.Action> actions, TargetInfoHandler<T> infoHandler, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacRule orig) Add a rule to this rule set.
-
Field Details
-
rules
private Map<String,RbacUtils.PreliminaryRbacRule<T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation>> rules
-
-
Constructor Details
-
PreliminaryRbacRules
private PreliminaryRbacRules()
-
-
Method Details
-
addRule
private void addRule(String role, List<org.eclipse.digitaltwin.basyx.authorization.rbac.Action> actions, TargetInfoHandler<T> infoHandler, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacRule orig) Add a rule to this rule set.- Parameters:
role- the roleactions- the actions of the rule (to be splitted)infoHandler- the information object handlerorig- the original RBAC rule to store/join
-
addAll
private void addAll(org.eclipse.digitaltwin.basyx.authorization.rules.rbac.backend.inmemory.InMemoryAuthorizationRbacStorage rbacStorage) Adds all collected rules torbacStorage.- Parameters:
rbacStorage- the target storage to modify
-