public void addNotificationListener(
String connectionId,
ObjectName name,
Subject subject)
throws SecurityException {
echo("addNotificationListener:");
echo("\tconnectionId: " + connectionId);
echo("\tname: " + name);
echo("\tsubject: " +
(subject == null ? null : subject.getPrincipals()));
if (throwException)
if (name.getCanonicalName().equals("domain:name=1,type=NB")
&&
subject.getPrincipals().contains(new JMXPrincipal("role")))
throw new SecurityException();
}
NotificationAccessControllerTest.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:infobip-open-jdk-8
作者:
评论列表
文章目录