org.apache.felix.eventadmin.impl.security
Class PermissionsUtil

java.lang.Object
  extended by 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
PermissionsUtil()
           
 
Method Summary
static java.security.Permission createPublishPermission(java.lang.String topic)
          Creates a TopicPermission for the given topic and the type PUBLISH
static java.security.Permission createSubscribePermission(java.lang.String topic)
          Creates a TopicPermission for the given topic and the type SUBSCRIBE Note that a
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionsUtil

public PermissionsUtil()
Method Detail

createPublishPermission

public static java.security.Permission createPublishPermission(java.lang.String topic)
Creates a TopicPermission for the given topic and the type PUBLISH

Parameters:
topic - The target topic
Returns:
The created permission or null in case the permission could not be created.
See Also:
TopicPermission

createSubscribePermission

public static java.security.Permission createSubscribePermission(java.lang.String topic)
Creates a TopicPermission for the given topic and the type SUBSCRIBE Note that a

Parameters:
topic - The target topic
Returns:
The created permission or a null in case the permission could not be created.
See Also:
TopicPermission


Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.