[jboss-jira] [JBoss JIRA] Commented: (JBCL-67) VFSClassLoaderPolicy->getProtectionDomain does not yet handle certificates

Anil Saldhana (JIRA) jira-events at lists.jboss.org
Wed Sep 16 00:59:24 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBCL-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12485990#action_12485990 ] 

Anil Saldhana commented on JBCL-67:
-----------------------------------

====================
anil at localhost:~/jboss-cl/Branch_2_0$ svn ci -m "JBCL-67: test case"
Sending        classloader/.classpath
Sending        classloader/.project
Sending        classloading/.classpath
Sending        classloading/.project
Sending        classloading-vfs/.classpath
Sending        classloading-vfs/.project
Adding         classloading-vfs/src/test/java/org/jboss/test/classloading/vfs/policy/test/VFSCLPolicySignedCertsUnitTestCase.java
Adding         classloading-vfs/src/test/resources/classloader/signedjar
Adding  (bin)  classloading-vfs/src/test/resources/classloader/signedjar/wstx.jar
Transmitting file data ........
Committed revision 93575.
=================


Ales, I am sorry. I checked in the eclipse settings I made to get the workspace working in eclipse. The eclipse settings check in was a mistake.

The test case is:   classloading-vfs/src/test/java/org/jboss/test/classloading/vfs/policy/test/VFSCLPolicySignedCertsUnitTestCase.java

> VFSClassLoaderPolicy->getProtectionDomain does not yet handle certificates
> --------------------------------------------------------------------------
>
>                 Key: JBCL-67
>                 URL: https://jira.jboss.org/jira/browse/JBCL-67
>             Project: JBoss ClassLoader
>          Issue Type: Sub-task
>            Reporter: Anil Saldhana
>            Assignee: Ales Justin
>
> http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/trunk/classloading-vfs/src/main/java/org/jboss/classloading/spi/vfs/policy/VFSClassLoaderPolicy.java
> ===================
>  @Override
>    protected ProtectionDomain getProtectionDomain(String className, String path)
>    {
>       VirtualFile clazz = findChild(path);
>       if (clazz == null)
>       {
>          log.trace("Unable to determine class file for " + className);
>          return null;
>       }
>       try
>       {
>          VirtualFile root = findRoot(path);
>          URL codeSourceURL = root.toURL();
>          Certificate[] certs = null; // TODO JBMICROCONT-182 determine certificates
>          CodeSource cs = new CodeSource(codeSourceURL, certs);
>          PermissionCollection permissions = Policy.getPolicy().getPermissions(cs);
>          return new ProtectionDomain(cs, permissions);
>       }
>       catch (Exception e)
>       {
>          throw new Error("Error determining protection domain for " + clazz, e);
>       }
>    }
> ======================================================
> Please move this jira issue to appropriate project and assign appropriate version.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list