Method getProtectionDomain()
Return type:
java.security.ProtectionDomain
Member of:
java.lang.Class
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
path = aClass.getProtectionDomain().getCodeSource().getLocation().toString();
2
String path_str = this.getClass().getProtectionDomain().getCodeSource().getLocation().getFile().toString();
3
domain = getClass().getProtectionDomain();
4
(ctx[i].getProtectionDomain().getCodeSource() != null)) {
5
URL codeLocation = EclipseStarter.class.getProtectionDomain().getCodeSource().getLocation();
6
URL u = getClass().getProtectionDomain().getCodeSource().getLocation();
7
URL url = aClass.getProtectionDomain().getCodeSource().getLocation();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.