Class AbstractGatewayAccessControlStrategy
java.lang.Object
com.inductiveautomation.ignition.gateway.dataroutes.AbstractAccessControlStrategy
com.inductiveautomation.ignition.gateway.dataroutes.AbstractGatewayAccessControlStrategy
- All Implemented Interfaces:
AccessControlStrategy
- Direct Known Subclasses:
ApiTokenManager.TokenAccessControl, SecurityZoneAccessControlStrategy, WebUiSession.WebUiSessionAccessControl
An access control strategy that understands how to map the
PermissionType enum to the
gateways' configured required permissions far that type.
In other words, if the access type is PermissionType.WRITE, this strategy will look up
the permissions for the "Config" permissions in the gateway's system properties.
-
Field Summary
FieldsFields inherited from class AbstractAccessControlStrategy
EMPTY_SECURITY_LEVELSFields inherited from interface AccessControlStrategy
OPEN_ROUTE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGatewayAccessControlStrategy(PermissionType permissionType) -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<PermissionsConfig> getRequiredPermissions(RequestContext context) Get the required permissions for the given request.toString()Methods inherited from class AbstractAccessControlStrategy
canAccess, getSecurityLevelsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AccessControlStrategy
getWwwAuthenticateHeader, validate
-
Field Details
-
permissionType
-
-
Constructor Details
-
AbstractGatewayAccessControlStrategy
-
-
Method Details
-
getRequiredPermissions
Description copied from class:AbstractAccessControlStrategyGet the required permissions for the given request. If more than one permissions config is returned, the route will be granted access if any of the permissions configs are satisfied. In other words, the returned configs are OR-ed together.- Specified by:
getRequiredPermissionsin classAbstractAccessControlStrategy
-
toString
-