【发布时间】:2015-04-30 04:45:33
【问题描述】:
我正在将旧版应用程序从 Orion Web 服务器迁移到 Wildfly。在 Orion Web 服务器中,安全主体通过以下方式获取:
String remoteUser = request.getRemoteUser();
javax.naming.InitialContext initialContext =new javax.naming.InitialContext();
Object rmo = initialContext.lookup("java:comp/RoleManager");
com.evermind.security.RoleManager roleManager = (com.evermind.security.RoleManager) rmo;
if (remoteUser != null) {
java.security.Principal principal = roleManager.getPrincipal(remoteUser);
}
我想知道在JBoss/Wildfly中获取主体的等效方法。
如果您需要任何其他信息,请告诉我。
【问题讨论】:
标签: java jakarta-ee jboss wildfly wildfly-8