[jboss-cvs] JBossAS SVN: r90462 - in branches/JBPAPP_5_0: testsuite and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jun 19 03:44:04 EDT 2009


Author: scott.stark at jboss.org
Date: 2009-06-19 03:44:04 -0400 (Fri, 19 Jun 2009)
New Revision: 90462

Modified:
   branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureDeploymentManager.java
   branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureManagementView.java
   branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureProfileServiceBean.java
   branches/JBPAPP_5_0/testsuite/.classpath
   branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java
Log:
JBAS-7031, change security domain to jmx-console

Modified: branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureDeploymentManager.java
===================================================================
--- branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureDeploymentManager.java	2009-06-19 07:15:18 UTC (rev 90461)
+++ branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureDeploymentManager.java	2009-06-19 07:44:04 UTC (rev 90462)
@@ -47,9 +47,9 @@
  * @version $Revision$
  */
 @Stateless(name="SecureDeploymentManager")
- at SecurityDomain(value="profileservice", unauthenticatedPrincipal="nobody")
+ at SecurityDomain(value="jmx-console", unauthenticatedPrincipal="nobody")
 @Remote(DeploymentManager.class)
- at RolesAllowed({"Administrator"})
+ at RolesAllowed({"JBossAdmin"})
 public class SecureDeploymentManager implements DeploymentManager
 {
    static Logger log = Logger.getLogger(SecureManagementView.class);

Modified: branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureManagementView.java
===================================================================
--- branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureManagementView.java	2009-06-19 07:15:18 UTC (rev 90461)
+++ branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureManagementView.java	2009-06-19 07:44:04 UTC (rev 90462)
@@ -47,9 +47,9 @@
  * @version $Revision$
  */
 @Stateless
- at SecurityDomain(value="profileservice", unauthenticatedPrincipal="nobody")
+ at SecurityDomain(value="jmx-console", unauthenticatedPrincipal="nobody")
 @Remote(ManagementView.class)
- at RolesAllowed({"Administrator"})
+ at RolesAllowed({"JBossAdmin"})
 public class SecureManagementView implements ManagementView
 {
    static Logger log = Logger.getLogger(SecureManagementView.class);

Modified: branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureProfileServiceBean.java
===================================================================
--- branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureProfileServiceBean.java	2009-06-19 07:15:18 UTC (rev 90461)
+++ branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/ejb/SecureProfileServiceBean.java	2009-06-19 07:44:04 UTC (rev 90462)
@@ -43,9 +43,9 @@
  * @version $Revision$
  */
 @Stateless(name="SecureProfileService")
- at SecurityDomain(value="profileservice", unauthenticatedPrincipal="nobody")
+ at SecurityDomain(value="jmx-console", unauthenticatedPrincipal="nobody")
 @Remote(ProfileService.class)
- at RolesAllowed({"Administrator"})
+ at RolesAllowed({"JBossAdmin"})
 public class SecureProfileServiceBean implements ProfileService
 {
    @Resource(mappedName="ProfileService")

Modified: branches/JBPAPP_5_0/testsuite/.classpath
===================================================================
--- branches/JBPAPP_5_0/testsuite/.classpath	2009-06-19 07:15:18 UTC (rev 90461)
+++ branches/JBPAPP_5_0/testsuite/.classpath	2009-06-19 07:44:04 UTC (rev 90462)
@@ -54,5 +54,7 @@
 	<classpathentry kind="lib" path="/thirdparty/jboss/jboss-bootstrap/lib/jboss-bootstrap.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/org/slf4j/lib/slf4j-api.jar" sourcepath="/thirdparty/org/slf4j/lib/slf4j-api-sources.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/org/jboss/slf4j/lib/slf4j-jboss-logging.jar" sourcepath="/thirdparty/org/jboss/slf4j/lib/slf4j-jboss-logging-sources.jar"/>
+	<classpathentry kind="lib" path="/thirdparty/jboss/jboss-ejb3-proxy-impl/lib/jboss-ejb3-proxy-impl.jar"/>
+	<classpathentry kind="lib" path="/thirdparty/jboss/jboss-ejb3-proxy-spi/lib/jboss-ejb3-proxy-spi.jar"/>
 	<classpathentry kind="output" path="output/eclipse-classes"/>
 </classpath>

Modified: branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java
===================================================================
--- branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java	2009-06-19 07:15:18 UTC (rev 90461)
+++ branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java	2009-06-19 07:44:04 UTC (rev 90462)
@@ -61,8 +61,8 @@
    private static final String SECURE_MANAGEMENT_VIEW_JNDI_NAME = "SecureManagementView/remote";
    private static final String SECURE_DEPLOYMENT_MANAGER_JNDI_NAME = "SecureDeploymentManager/remote";
    
-   private static final String PROFILE_SERVICE_PRINCIPAL = "javaduke";
-   private static final String PROFILE_SERVICE_CREDENTIALS = "anotherduke";
+   private static final String PROFILE_SERVICE_PRINCIPAL = "admin";
+   private static final String PROFILE_SERVICE_CREDENTIALS = "admin";
 
    private LoginContext loginContext;
 
@@ -117,7 +117,7 @@
    public void testProfileKeys()
       throws Exception
    {
-      login("javaduke", "anotherduke".toCharArray());
+      login(PROFILE_SERVICE_PRINCIPAL, PROFILE_SERVICE_CREDENTIALS.toCharArray());
       ProfileService ps = getProfileService();
       Collection<ProfileKey> keys = ps.getProfileKeys();
       log.info("getProfileKeys: "+keys);
@@ -159,7 +159,7 @@
    public void testDefaultDSComponentCount()
       throws Exception
    {
-      login("javaduke", "anotherduke".toCharArray());
+      login(PROFILE_SERVICE_PRINCIPAL, PROFILE_SERVICE_CREDENTIALS.toCharArray());
       ManagementView mgtView = getManagementView();
       ComponentType type = new ComponentType("DataSource", "LocalTx");
       Set<ManagedComponent> comps = mgtView.getComponentsForType(type);




More information about the jboss-cvs-commits mailing list