Class AbstractAccessControlStrategy
java.lang.Object
com.inductiveautomation.ignition.gateway.dataroutes.AbstractAccessControlStrategy
- All Implemented Interfaces:
AccessControlStrategy
- Direct Known Subclasses:
AbstractGatewayAccessControlStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.google.common.collect.ImmutableCollection<SecurityLevelConfig>
Fields inherited from interface com.inductiveautomation.ignition.gateway.dataroutes.AccessControlStrategy
OPEN_ROUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanAccess
(RequestContext context) Determines whether the request should be allowed to proceed.protected abstract Set<PermissionsConfig>
getRequiredPermissions
(RequestContext context) Get the required permissions for the given request.protected abstract com.google.common.collect.ImmutableCollection<SecurityLevelConfig>
getSecurityLevels
(RequestContext request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.gateway.dataroutes.AccessControlStrategy
getWwwAuthenticateHeader, validate
-
Field Details
-
EMPTY_SECURITY_LEVELS
protected static final com.google.common.collect.ImmutableCollection<SecurityLevelConfig> EMPTY_SECURITY_LEVELS
-
-
Constructor Details
-
AbstractAccessControlStrategy
public AbstractAccessControlStrategy()
-
-
Method Details
-
getRequiredPermissions
Get 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. -
getSecurityLevels
protected abstract com.google.common.collect.ImmutableCollection<SecurityLevelConfig> getSecurityLevels(RequestContext request) - Returns:
- The security levels associated with the request.
-
canAccess
Description copied from interface:AccessControlStrategy
Determines whether the request should be allowed to proceed.- Specified by:
canAccess
in interfaceAccessControlStrategy
-