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 Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.digitaltwin.basyx.authorization.rbac.Actionprivate Tprivate TargetInfoHandler<T> private String -
Constructor Summary
ConstructorsConstructorDescriptionPreliminaryRbacRule(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. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Return the RBAC storage key.voidjoin(RbacUtils.PreliminaryRbacRule<T> rule) Joinrulewith this rule.org.eclipse.digitaltwin.basyx.authorization.rbac.RbacRuleCreate a BaSyx RBAC rule from the collected information.
-
Field Details
-
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
-
-
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 roleaction- the action (singled out)infoHandler- the information object handlerorig- the original RBAC rule to store/join
-
-
Method Details
-
getKey
Return the RBAC storage key.- Returns:
- the key
-
join
Joinrulewith 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
-