public abstract class PermissionsUtil extends Object
| Constructor and Description |
|---|
PermissionsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Permission |
createPublishPermission(String topic)
Creates a
TopicPermission for the given topic and the type PUBLISH |
static Permission |
createSubscribePermission(String topic)
Creates a
TopicPermission for the given topic and the type SUBSCRIBE
Note that a |
public static Permission createPublishPermission(String topic)
TopicPermission for the given topic and the type PUBLISHtopic - The target topicnull in case the
permission could not be created.TopicPermissionpublic static Permission createSubscribePermission(String topic)
TopicPermission for the given topic and the type SUBSCRIBE
Note that atopic - The target topicnull in case the
permission could not be created.TopicPermissionCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.