Class PermissionsUtil
java.lang.Object
org.apache.felix.eventadmin.impl.security.PermissionsUtil
public abstract class PermissionsUtil
extends java.lang.Object
Utility class for permissions.
- Author:
- Felix Project Team
-
Constructor Summary
Constructors Constructor Description PermissionsUtil() -
Method Summary
Modifier and Type Method Description static java.security.PermissioncreatePublishPermission(java.lang.String topic)Creates aTopicPermissionfor the given topic and the type PUBLISHstatic java.security.PermissioncreateSubscribePermission(java.lang.String topic)Creates aTopicPermissionfor the given topic and the type SUBSCRIBE Note that a
-
Constructor Details
-
PermissionsUtil
public PermissionsUtil()
-
-
Method Details
-
createPublishPermission
public static java.security.Permission createPublishPermission(java.lang.String topic)Creates aTopicPermissionfor the given topic and the type PUBLISH- Parameters:
topic- The target topic- Returns:
- The created permission or
nullin case the permission could not be created. - See Also:
TopicPermission
-
createSubscribePermission
public static java.security.Permission createSubscribePermission(java.lang.String topic)Creates aTopicPermissionfor the given topic and the type SUBSCRIBE Note that a- Parameters:
topic- The target topic- Returns:
- The created permission or a
nullin case the permission could not be created. - See Also:
TopicPermission
-