private void checkTopicSubscribePermission ( String topic ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm == null ) return ; sm . checkPermission ( new TopicPermission ( topic , SUBSCRIBE ) ) ; }
Check if the caller has permission to subscribe to events published to the specified topic .