summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/os/NativeLibrary.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-14 21:29:29 +0100
committerSven Gothel <[email protected]>2023-01-14 21:29:29 +0100
commit1396c3ca6fc675dcf4bdea708c8a8c89d481e3b8 (patch)
treeaab2100371d332f86ffe2b86a906565fdb2576e2 /src/java/com/jogamp/common/os/NativeLibrary.java
parent8edb09f4851a713b0e9817b4d2f081e0de86eaf3 (diff)
Replace AccessController.doPrivileged() w/ SecurityUtil.doPrivileged()
Diffstat (limited to 'src/java/com/jogamp/common/os/NativeLibrary.java')
-rw-r--r--src/java/com/jogamp/common/os/NativeLibrary.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/java/com/jogamp/common/os/NativeLibrary.java b/src/java/com/jogamp/common/os/NativeLibrary.java
index 2a42bed..aa53502 100644
--- a/src/java/com/jogamp/common/os/NativeLibrary.java
+++ b/src/java/com/jogamp/common/os/NativeLibrary.java
@@ -43,7 +43,6 @@ package com.jogamp.common.os;
import java.io.File;
import java.lang.reflect.Method;
import java.net.URISyntaxException;
-import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.ArrayList;
import java.util.Iterator;
@@ -59,6 +58,7 @@ import jogamp.common.os.WindowsDynamicLinkerImpl;
import com.jogamp.common.ExceptionUtils;
import com.jogamp.common.util.IOUtil;
+import com.jogamp.common.util.SecurityUtil;
import com.jogamp.common.util.cache.TempJarCache;
/** Provides low-level, relatively platform-independent access to
@@ -453,7 +453,7 @@ public final class NativeLibrary implements DynamicLookupHelper {
// Add entries from java.library.path
final String[] javaLibraryPaths =
- AccessController.doPrivileged(new PrivilegedAction<String[]>() {
+ SecurityUtil.doPrivileged(new PrivilegedAction<String[]>() {
@Override
public String[] run() {
int count = 0;
@@ -495,7 +495,7 @@ public final class NativeLibrary implements DynamicLookupHelper {
// Add current working directory
final String userDir =
- AccessController.doPrivileged(new PrivilegedAction<String>() {
+ SecurityUtil.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
return System.getProperty("user.dir");
@@ -616,7 +616,7 @@ public final class NativeLibrary implements DynamicLookupHelper {
return null;
}
if (!initializedFindLibraryMethod) {
- AccessController.doPrivileged(new PrivilegedAction<Object>() {
+ SecurityUtil.doPrivileged(new PrivilegedAction<Object>() {
@Override
public Object run() {
try {
@@ -633,7 +633,7 @@ public final class NativeLibrary implements DynamicLookupHelper {
}
if (findLibraryMethod != null) {
try {
- return AccessController.doPrivileged(new PrivilegedAction<String>() {
+ return SecurityUtil.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
try {