|
GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java (public API).
|
Static Public Member Functions | |
| static final SecurityManager | getSecurityManager () |
Call wrapper for System#getSecurityManager(). More... | |
| static< T > T | doPrivileged (final PrivilegedAction< T > o) |
Call wrapper for java.security.AccessController#doPrivileged(PrivilegedAction). More... | |
| static final boolean | hasAllPermissions () |
Returns true if no SecurityManager has been installed or the installed SecurityManager's checkPermission(new AllPermission()) passes. More... | |
| static final boolean | hasPermission (final Permission perm) |
Returns true if no SecurityManager has been installed or the installed SecurityManager's checkPermission(perm) passes. More... | |
| static final void | checkAllPermissions () throws SecurityException |
Throws an SecurityException if an installed SecurityManager does not permit the requested AllPermission. More... | |
| static final void | checkPermission (final Permission perm) throws SecurityException |
Throws an SecurityException if an installed SecurityManager does not permit the requested Permission. More... | |
| static final boolean | hasLinkPermission (final String libName) |
Returns true if no SecurityManager has been installed or the installed SecurityManager's checkLink(libName) passes. More... | |
| static final void | checkLinkPermission (final String libName) throws SecurityException |
Throws an SecurityException if an installed SecurityManager does not permit to dynamically link the given libName. More... | |
| static final void | checkAllLinkPermission () throws SecurityException |
Throws an SecurityException if an installed SecurityManager does not permit to dynamically link to all libraries. More... | |
| static final Certificate[] | getCerts (final Class<?> clz) throws SecurityException |
| static final boolean | equals (final Certificate[] a, final Certificate[] b) |
Definition at line 39 of file SecurityUtil.java.
|
static |
Throws an SecurityException if an installed SecurityManager does not permit to dynamically link to all libraries.
Definition at line 193 of file SecurityUtil.java.
|
static |
Throws an SecurityException if an installed SecurityManager does not permit the requested AllPermission.
Definition at line 151 of file SecurityUtil.java.
|
static |
Throws an SecurityException if an installed SecurityManager does not permit to dynamically link the given libName.
Definition at line 183 of file SecurityUtil.java.
|
static |
Throws an SecurityException if an installed SecurityManager does not permit the requested Permission.
Definition at line 159 of file SecurityUtil.java.
|
static |
Call wrapper for java.security.AccessController#doPrivileged(PrivilegedAction).
java.security.AccessController#doPrivileged(PrivilegedAction) is deprecated since Java 17 (JEP 411) and earmarked to be removed.
On a Java 17 machine, this method will simply invoke the given PrivilegedAction<T>.
| <T> | return type of PrivilegedAction<T> |
| o | the PrivilegedAction<T> |
Definition at line 78 of file SecurityUtil.java.
|
static |
Definition at line 212 of file SecurityUtil.java.
|
static |
| clz |
| SecurityException | if the caller has no permission to access the ProtectedDomain of the given class. |
Definition at line 205 of file SecurityUtil.java.
|
static |
Call wrapper for System#getSecurityManager().
System#getSecurityManager() is deprecated since Java 17 (JEP 411) and earmarked to be removed.
On a Java 17 machine, this method will simply return null.
Definition at line 56 of file SecurityUtil.java.
|
static |
Returns true if no SecurityManager has been installed or the installed SecurityManager's checkPermission(new AllPermission()) passes.
Otherwise method returns false.
Definition at line 129 of file SecurityUtil.java.
|
static |
Returns true if no SecurityManager has been installed or the installed SecurityManager's checkLink(libName) passes.
Otherwise method returns false.
Definition at line 170 of file SecurityUtil.java.
|
static |
Returns true if no SecurityManager has been installed or the installed SecurityManager's checkPermission(perm) passes.
Otherwise method returns false.
Definition at line 138 of file SecurityUtil.java.