[
https://jira.jboss.org/jira/browse/JBCL-67?page=com.atlassian.jira.plugin...
]
Anil Saldhana reassigned JBCL-67:
---------------------------------
Assignee: Ales Justin
You will need to just return the certificates from the JarEntry.
http://java.sun.com/j2se/1.5.0/docs/api/java/util/jar/JarEntry.html#getCe...
If the certs are null, we pass null to the codesource. But if the jar is signed, then the
JarEntry certs will return the array of certs. We need this to be passed to the
construction of the CodeSource.
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/classloadi...
===================
@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