mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
specify valid code source for system classes
This enables use of a class's protection domain to determine what JAR or directory it came from.
This commit is contained in:
@ -10,4 +10,17 @@
|
||||
|
||||
package java.security;
|
||||
|
||||
public class CodeSource { }
|
||||
import java.net.URL;
|
||||
import java.security.cert.Certificate;
|
||||
|
||||
public class CodeSource {
|
||||
private final URL url;
|
||||
|
||||
public CodeSource(URL url, Certificate[] certificates) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public URL getLocation() {
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user