40 public boolean isAccessUserOnly(File f) throws IOException {
41 String path = f.getAbsolutePath();
42 if (!isSecuritySupported0(path)) {
43 throw new UnsupportedOperationException("File system does not support file security");
44 }
45 return isAccessUserOnly0(path);
46 }
47
48 // Native methods
49
50 static native void init0();
51
52 static native boolean isSecuritySupported0(String path) throws IOException;
53
54 static native boolean isAccessUserOnly0(String path) throws IOException;
55
56 // Initialization
57
58 static {
59 java.security.AccessController
60 .doPrivileged(new sun.security.action.LoadLibraryAction("management"));
61 init0();
62 }
63 }
|
40 public boolean isAccessUserOnly(File f) throws IOException {
41 String path = f.getAbsolutePath();
42 if (!isSecuritySupported0(path)) {
43 throw new UnsupportedOperationException("File system does not support file security");
44 }
45 return isAccessUserOnly0(path);
46 }
47
48 // Native methods
49
50 static native void init0();
51
52 static native boolean isSecuritySupported0(String path) throws IOException;
53
54 static native boolean isAccessUserOnly0(String path) throws IOException;
55
56 // Initialization
57
58 static {
59 java.security.AccessController
60 .doPrivileged(new java.security.PrivilegedAction<Void>() {
61 public Void run() {
62 System.loadLibrary("management");
63 return null;
64 }
65 });
66
67 init0();
68 }
69 }
|