Package io.moquette.broker.security
Class DenyAllAuthorizatorPolicy
- java.lang.Object
-
- io.moquette.broker.security.DenyAllAuthorizatorPolicy
-
- All Implemented Interfaces:
IAuthorizatorPolicy
public class DenyAllAuthorizatorPolicy extends Object implements IAuthorizatorPolicy
-
-
Constructor Summary
Constructors Constructor Description DenyAllAuthorizatorPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRead(Topic topic, String user, String client)booleancanWrite(Topic topic, String user, String client)Ask the implementation of the authorizator if the topic can be used in a publish.
-
-
-
Method Detail
-
canRead
public boolean canRead(Topic topic, String user, String client)
- Specified by:
canReadin interfaceIAuthorizatorPolicy
-
canWrite
public boolean canWrite(Topic topic, String user, String client)
Description copied from interface:IAuthorizatorPolicyAsk the implementation of the authorizator if the topic can be used in a publish.- Specified by:
canWritein interfaceIAuthorizatorPolicy- Parameters:
topic- the topic to write to.user- the userclient- the client- Returns:
- true if the user from client can publish data on topic.
-
-