Package io.datarouter.secretweb.web
Class DefaultSecretHandlerPermissions
java.lang.Object
io.datarouter.secretweb.web.DefaultSecretHandlerPermissions
- All Implemented Interfaces:
SecretHandlerPermissions
@Singleton public class DefaultSecretHandlerPermissions extends Object implements SecretHandlerPermissions
This allows all users to view the list of secrets on any environment and allows all other operations on every
environment except production.
-
Constructor Summary
Constructors Constructor Description DefaultSecretHandlerPermissions() -
Method Summary
Modifier and Type Method Description List<String>getAuthorizedUsers()booleanisAuthorized(io.datarouter.web.user.session.service.Session session, SecretHandlerOpRequestDto secretOpRequest)
-
Constructor Details
-
DefaultSecretHandlerPermissions
public DefaultSecretHandlerPermissions()
-
-
Method Details
-
isAuthorized
public final boolean isAuthorized(io.datarouter.web.user.session.service.Session session, SecretHandlerOpRequestDto secretOpRequest)- Specified by:
isAuthorizedin interfaceSecretHandlerPermissions
-
getAuthorizedUsers
-