Class ResourceAuthorizer
java.lang.Object
org.apache.storm.daemon.logviewer.utils.ResourceAuthorizer
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetLogUserGroupWhitelist(String fileName) Get the whitelist of users and groups for given file.booleanisAuthorizedLogUser(String user, String fileName) Checks whether user is authorized to access file.booleanisUserAllowedToAccessFile(String user, String fileName) Checks whether user is allowed to access a Logviewer file via UI.
- 
Constructor Details- 
ResourceAuthorizerConstuctor.- Parameters:
- stormConf- storm configuration
 
 
- 
- 
Method Details- 
isUserAllowedToAccessFileChecks whether user is allowed to access a Logviewer file via UI. Always true when the Logviewer filter is not configured.- Parameters:
- fileName- file name to access. The file name must not contain upward path traversal sequences (e.g. "../").
- user- username
 
- 
isAuthorizedLogUserChecks whether user is authorized to access file. Checks regardless of UI filter.- Parameters:
- user- username
- fileName- file name to access. The file name must not contain upward path traversal sequences (e.g. "../").
 
- 
getLogUserGroupWhitelistGet the whitelist of users and groups for given file.- Parameters:
- fileName- file name to get the whitelist
 
 
-