Code example for CodeSource

Methods: getLocation

0
                        URL url = null;
                        ProtectionDomain pd = provider.getClass().getProtectionDomain();
                        if (pd != null) {
                            CodeSource cs = pd.getCodeSource();
                            if (cs != null) {
                                url = cs.getLocation();
                            } 
                        } 
                        return url;
                    } 
                }); 
                log.debug("Provider code base: " + url);
            } 
 
            Cipher.getInstance("DummyAlg/DummyMode/DummyPadding", "DP");
 
            response.getWriter().write("ok");
            response.getWriter().close();
 
        } catch (Exception e) {