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 Details

  • 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 role
      actions - the actions of the rule (to be splitted)
      infoHandler - the information object handler
      orig - 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 to rbacStorage.
      Parameters:
      rbacStorage - the target storage to modify