Class ManagementTokenAware
java.lang.Object
org.craftercms.studio.controller.rest.v2.ManagementTokenAware
- Direct Known Subclasses:
MonitoringController
,PluginController
Base class for all controllers that use the management token to protect public urls
- Since:
- 4.0
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SecurityService
protected final StudioConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionManagementTokenAware
(StudioConfiguration studioConfiguration, SecurityService securityService) -
Method Summary
-
Field Details
-
studioConfiguration
-
securityService
-
-
Constructor Details
-
ManagementTokenAware
public ManagementTokenAware(StudioConfiguration studioConfiguration, SecurityService securityService)
-
-
Method Details
-
validateToken
protected void validateToken(String token) throws org.craftercms.commons.exceptions.InvalidManagementTokenException, InvalidParametersException - Throws:
org.craftercms.commons.exceptions.InvalidManagementTokenException
InvalidParametersException
-
getConfiguredToken
-