IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
SecurityManagerAccessor.cs
Go to the documentation of this file.
1using System;
2
4{
5
6#if FIRST_PASS == false && EXPORTER == false && IMPORTER == false
7
11 internal sealed class SecurityManagerAccessor : Accessor<object>
12 {
13
14 MethodAccessor<Action<object, string>> checkRead;
15 MethodAccessor<Action<object, string>> checkWrite;
16 MethodAccessor<Action<object, string>> checkDelete;
17 MethodAccessor<Action<object, string>> checkExec;
18 MethodAccessor<Action<object, string, int>> checkAccept;
19
24 public SecurityManagerAccessor(AccessorTypeResolver resolver) :
25 base(resolver, "java.lang.SecurityManager")
26 {
27
28 }
29
33 public void InvokeCheckRead(object self, string path) => GetMethod(ref checkRead, nameof(checkRead), typeof(void), typeof(string)).Invoker(self, path);
34
38 public void InvokeCheckWrite(object self, string path) => GetMethod(ref checkWrite, nameof(checkWrite), typeof(void), typeof(string)).Invoker(self, path);
39
43 public void InvokeCheckDelete(object self, string path) => GetMethod(ref checkDelete, nameof(checkDelete), typeof(void), typeof(string)).Invoker(self, path);
44
48 public void InvokeCheckExec(object self, string path) => GetMethod(ref checkExec, nameof(checkExec), typeof(void), typeof(string)).Invoker(self, path);
49
53 public void InvokeCheckAccept(object self, string host, int port) => GetMethod(ref checkAccept, nameof(checkAccept), typeof(void), typeof(string), typeof(int)).Invoker(self, host, port);
54
55 }
56
57#endif
58
59}