Best code examples for Java 8 CodeSource class (java.security.CodeSource)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 CodeSource class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 CodeSource examples from Open Source projects
This code example shows how to use the following methods: getLocation
124:	url = cs.getLocation(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getCertificates, getCodeSigners, getLocation
82:	URL codeSourceURL = PolicyUtils.normalizeURL(codeSource.getLocation()); 
-
85:	if (codeSourceURL != codeSource.getLocation()) { 
-
87:	CodeSigner[] signers = codeSource.getCodeSigners(); 
-
90:	.getCertificates()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
45:	CodeSource cs = new CodeSource(codeSourceURL, new Certificate[0]); 
46:	PermissionCollection perms = Policy.getPolicy().getPermissions(cs); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: implies
52:	new CodeSource(thisURL, (java.security.cert.Certificate[]) null); 
-
56:	if (thisCs.implies(thatCs) != result) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: sleep
67:	new CodeSource(null, (Certificate[]) null), perms) }); 
-
91:	Thread.sleep(2000); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
27:	CodeSource cs = new CodeSource(null, (Certificate[]) null); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
60:	return new JarLibraryLoader(new CodeSource(url, codeSigners()), "lib"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getLocation
57:	URL url = cs.getLocation(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getCertificates, getCodeSigners, getLocation
82:	URL codeSourceURL = PolicyUtils.normalizeURL(codeSource.getLocation()); 
-
85:	if (codeSourceURL != codeSource.getLocation()) { 
-
87:	CodeSigner[] signers = codeSource.getCodeSigners(); 
-
90:	codeSource.getCertificates()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getCertificates, getCodeSigners, getLocation
107:	.getLocation()); 
-
110:	if (codeSourceURL != codeSource.getLocation()) { 
-
112:	final CodeSigner[] signers = codeSource.getCodeSigners(); 
-
115:	codeSource.getCertificates()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
45:	CodeSource cs = new CodeSource(codeSourceURL, new Certificate[0]); 
46:	PermissionCollection perms = Policy.getPolicy().getPermissions(cs); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
74:	(new CodeSource(url2, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: implies
52:	new CodeSource(thisURL, (java.security.cert.Certificate[]) null); 
-
56:	if (thisCs.implies(thatCs) != result) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
152:	new CodeSource(rootURL, new Certificate[0]), new Permissions()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
41:	helper = SharedLibHelper.findHelper(this, libname, 
42:	new CodeSource(url, null), true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
45:	CodeSource cs = new CodeSource(codeSourceURL, new Certificate[0]); 
46:	PermissionCollection perms = Policy.getPolicy().getPermissions(cs); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: sleep
67:	new CodeSource(null, (Certificate[]) null), perms) }); 
-
91:	Thread.sleep(2000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: implies
52:	new CodeSource(thisURL, (java.security.cert.Certificate[]) null); 
-
56:	if (thisCs.implies(thatCs) != result) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getLocation
204:	new URL[] {codeSource.getLocation()}, clazz.getClassLoader()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: sleep
67:	new CodeSource(null, (Certificate[]) null), perms) }); 
-
91:	Thread.sleep(2000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
45:	CodeSource cs = new CodeSource(codeSourceURL, new Certificate[0]); 
46:	PermissionCollection perms = Policy.getPolicy().getPermissions(cs); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getCertificates
65:	CodeSource cs = new CodeSource(new java.net.URL("file:///test"), 
-
68:	.getCertificates()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
286:	domain = new SubjectProtectionDomain(new CodeSource(null, (java.security.cert.Certificate[])null), subject); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
158:	(new CodeSource(new URL("file:/foo"), 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
183:	CodeSource cs = new CodeSource(url, (Certificate[]) null); 
-
186:	ldr.getPerms(cs); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: implies
38:	new CodeSource(thisURL, (java.security.cert.Certificate[]) null); 
-
42:	if (thisCs.implies(thatCs)) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: equals
86:	CodeSource thiz = new CodeSource(urlSite, smallSet); 
-
88:	assertFalse(thiz.equals(that)); 
-
91:	assertFalse(thiz.equals(that)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
91:	CodeSource source = new CodeSource(url, (Certificate[]) null); 
-
107:	assertSame("CodeSource", source, pd[0].getCodeSource()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: equals
86:	CodeSource thiz = new CodeSource(urlSite, smallSet); 
-
88:	assertFalse(thiz.equals(that)); 
-
91:	assertFalse(thiz.equals(that)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
82:	CodeSource cs = new CodeSource(url,new Certificate[0]); 
-
84:	PermissionCollection pc = ap.getPermissions(cs); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
26:	codeSource = new CodeSource(service.getFileName(), (Certificate[]) null); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
18:	final CodeSource codeSource = new CodeSource(base, (CodeSigner[]) null); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
45:	CodeSource cs = new CodeSource(codeSourceURL, new Certificate[0]); 
46:	PermissionCollection perms = Policy.getPolicy().getPermissions(cs); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getLocation
120:	URL url = codeSource.getLocation(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
71:	new CodeSource(null, (Certificate[]) null), new Permissions()) }; 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getLocation
131:	URL ret = cs.getLocation(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getCertificates
165:	final Certificate[] certs = (null != cs) ? cs.getCertificates() : null; 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
74:	return new CodeSource(loader.baseURL, certs); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
86:	(new CodeSource(url4, 
Full Snippet Info
4
CodeRank
See Code Examples for Java 8 CodeSource Methods: