jaulib v1.3.0
Jau Support Library (C++, Java, ..)
|
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 37 of file SecurityUtil.java.
|
static |
Throws an SecurityException
if an installed SecurityManager
does not permit to dynamically link to all libraries.
Definition at line 194 of file SecurityUtil.java.
|
static |
Throws an SecurityException
if an installed SecurityManager
does not permit the requested AllPermission
.
Definition at line 149 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 158 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 76 of file SecurityUtil.java.
|
static |
Definition at line 213 of file SecurityUtil.java.
|
static |
clz |
SecurityException | if the caller has no permission to access the ProtectedDomain of the given class. |
Definition at line 206 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 54 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 127 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 169 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 136 of file SecurityUtil.java.