public CodeSource getCodeSource ( String path ) { try { PathImpl jarPath = _jarPath . lookup ( path ) ; Certificate [ ] certificates = jarPath . getCertificates ( ) ; URL url = new URL ( _jarPath . getContainer ( ) . getURL ( ) ) ; return new CodeSource ( url , certificates ) ; } catch ( Exception e ) { log . log ( Level . WARNING , e . toString ( ) , e ) ; return null ; } }
Returns the code source .