Class RbacUtils.PreliminaryRbacRule<T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation>

java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.server.apps.security.RbacUtils.PreliminaryRbacRule<T>
Type Parameters:
T - the target information type
Enclosing class:
RbacUtils

private static class RbacUtils.PreliminaryRbacRule<T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation> extends Object
A preliminary RBAC rule that potentially needs to be joined with further, so far unknown rules.
Author:
Holger Eichelberger, SSE
  • Field Details

    • role

      private String role
    • action

      private org.eclipse.digitaltwin.basyx.authorization.rbac.Action action
    • infoHandler

      private TargetInfoHandler<T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation> infoHandler
    • info

      private T extends org.eclipse.digitaltwin.basyx.authorization.rbac.TargetInformation info
  • Constructor Details

    • PreliminaryRbacRule

      public PreliminaryRbacRule(String role, org.eclipse.digitaltwin.basyx.authorization.rbac.Action action, TargetInfoHandler<T> infoHandler, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacRule orig)
      Creates a rule.
      Parameters:
      role - the role
      action - the action (singled out)
      infoHandler - the information object handler
      orig - the original RBAC rule to store/join
  • Method Details

    • getKey

      public String getKey()
      Return the RBAC storage key.
      Returns:
      the key
    • join

      public void join(RbacUtils.PreliminaryRbacRule<T> rule)
      Join rule with this rule.
      Parameters:
      rule - the rule to join
    • toRbacRule

      public org.eclipse.digitaltwin.basyx.authorization.rbac.RbacRule toRbacRule()
      Create a BaSyx RBAC rule from the collected information.
      Returns:
      the BaSyx RBAC rule