Class ApiTokenManager.TokenAccessControl
java.lang.Object
com.inductiveautomation.ignition.gateway.dataroutes.AbstractAccessControlStrategy
com.inductiveautomation.ignition.gateway.dataroutes.AbstractGatewayAccessControlStrategy
com.inductiveautomation.ignition.gateway.auth.apitoken.ApiTokenManager.TokenAccessControl
- All Implemented Interfaces:
AccessControlStrategy
- Enclosing interface:
ApiTokenManager
-
Field Summary
Fields inherited from class AbstractGatewayAccessControlStrategy
permissionTypeFields inherited from class AbstractAccessControlStrategy
EMPTY_SECURITY_LEVELSFields inherited from interface AccessControlStrategy
OPEN_ROUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActor(RequestContext request) If this request is authenticated with an API token, return the actor string for the token.protected com.google.common.collect.ImmutableCollection<SecurityLevelConfig> getSecurityLevels(RequestContext request) static com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevelsFromToken(RequestContext request) Parses security levels out of an API token attached to a request.Methods inherited from class AbstractGatewayAccessControlStrategy
getRequiredPermissions, toStringMethods inherited from class AbstractAccessControlStrategy
canAccessMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AccessControlStrategy
getWwwAuthenticateHeader, validate
-
Constructor Details
-
TokenAccessControl
-
-
Method Details
-
securityLevelsFromToken
public static com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevelsFromToken(RequestContext request) Parses security levels out of an API token attached to a request.- Parameters:
request- The request containing the API token to extract security levels from- Returns:
- The security levels configured on the token, or an empty set if none are configured
-
getSecurityLevels
protected com.google.common.collect.ImmutableCollection<SecurityLevelConfig> getSecurityLevels(RequestContext request) - Specified by:
getSecurityLevelsin classAbstractAccessControlStrategy- Returns:
- The security levels associated with the request.
-
getActor
If this request is authenticated with an API token, return the actor string for the token.
-