Uses of Class
java.lang.SecurityException
-
Packages that use SecurityException Package Description com.ibm.gpu com.ibm.gpu allows the user to perform certain operations using any connected CUDA capable GPUcom.ibm.lang.management OpenJ9 management extensions to java.lang.management.java.awt Contains all of the classes for creating user interfaces and for painting graphics and images.java.beans Contains classes related to developing beans -- components based on the JavaBeans™ architecture.java.io Provides for system input and output through data streams, serialization and the file system.java.lang Provides classes that are fundamental to the design of the Java programming language.java.lang.invoke Thejava.lang.invoke
package provides low-level primitives for interacting with the Java Virtual Machine.java.rmi Provides the RMI package.java.rmi.server Provides classes and interfaces for supporting the server side of RMI.java.security Provides the classes and interfaces for the security framework.java.util.logging Provides the classes and interfaces of the Java™ 2 platform's core logging facilities.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.jdk.jfr This package provides classes to create events and control Flight Recorder.jdk.management.jfr This package contains classes to control and monitor Flight Recorder over Java Management Extensions (JMX). -
-
Uses of SecurityException in com.ibm.gpu
Methods in com.ibm.gpu that throw SecurityException Modifier and Type Method Description static CUDAManager
CUDAManager. getInstance()
Deprecated.Useinstance()
instead.static CUDAManager
CUDAManager. instance()
Return a CUDAManager instance. -
Uses of SecurityException in com.ibm.lang.management
Methods in com.ibm.lang.management that throw SecurityException Modifier and Type Method Description ExtendedThreadInfo[]
ThreadMXBean. dumpAllExtendedThreads(boolean lockedMonitors, boolean lockedSynchronizers)
API method that fetches an array of ExtendedThreadInfo objects corresponding to threads in the virtual machine during the time it is invoked.long
ThreadMXBean. getNativeThreadId(long threadId)
Find the native (operating system assigned) thread identifiers corresponding to a unique TID (as returned by java/lang/Thread.getId()).long[]
ThreadMXBean. getNativeThreadIds(long[] threadIDs)
Fetches an array of the native (operating system assigned) identifiers corresponding to unique TIDs (as returned by java/lang/Thread.getId()) specified to it. -
Uses of SecurityException in java.awt
Methods in java.awt that throw SecurityException Modifier and Type Method Description void
KeyboardFocusManager. clearGlobalFocusOwner()
Clears the global focus owner at both the Java and native levels.protected Window
KeyboardFocusManager. getGlobalActiveWindow()
Returns the active Window, even if the calling thread is in a different context than the active Window.protected Container
KeyboardFocusManager. getGlobalCurrentFocusCycleRoot()
Returns the current focus cycle root, even if the calling thread is in a different context than the current focus cycle root.protected Window
KeyboardFocusManager. getGlobalFocusedWindow()
Returns the focused Window, even if the calling thread is in a different context than the focused Window.protected Component
KeyboardFocusManager. getGlobalFocusOwner()
Returns the focus owner, even if the calling thread is in a different context than the focus owner.protected Component
KeyboardFocusManager. getGlobalPermanentFocusOwner()
Returns the permanent focus owner, even if the calling thread is in a different context than the permanent focus owner.void
Window. setAlwaysOnTop(boolean alwaysOnTop)
Sets whether this window should always be above other windows.static void
KeyboardFocusManager. setCurrentKeyboardFocusManager(KeyboardFocusManager newManager)
Sets the current KeyboardFocusManager instance for the calling thread's context.protected void
KeyboardFocusManager. setGlobalActiveWindow(Window activeWindow)
Sets the active Window.void
KeyboardFocusManager. setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)
Sets the current focus cycle root.protected void
KeyboardFocusManager. setGlobalFocusedWindow(Window focusedWindow)
Sets the focused Window.protected void
KeyboardFocusManager. setGlobalFocusOwner(Component focusOwner)
Sets the focus owner.protected void
KeyboardFocusManager. setGlobalPermanentFocusOwner(Component permanentFocusOwner)
Sets the permanent focus owner. -
Uses of SecurityException in java.beans
Methods in java.beans that throw SecurityException Modifier and Type Method Description static void
Beans. setDesignTime(boolean isDesignTime)
Used to indicate whether of not we are running in an application builder environment.static void
Beans. setGuiAvailable(boolean isGuiAvailable)
Used to indicate whether of not we are running in an environment where GUI interaction is available. -
Uses of SecurityException in java.io
Methods in java.io that throw SecurityException Modifier and Type Method Description protected boolean
ObjectOutputStream. enableReplaceObject(boolean enable)
Enables the stream to do replacement of objects written to the stream.protected boolean
ObjectInputStream. enableResolveObject(boolean enable)
Enables the stream to do replacement of objects read from the stream.Constructors in java.io that throw SecurityException Constructor Description ObjectInputStream()
Provide a way for subclasses that are completely reimplementing ObjectInputStream to not have to allocate private data just used by this implementation of ObjectInputStream.ObjectOutputStream()
Provide a way for subclasses that are completely reimplementing ObjectOutputStream to not have to allocate private data just used by this implementation of ObjectOutputStream. -
Uses of SecurityException in java.lang
Methods in java.lang that throw SecurityException Modifier and Type Method Description Constructor<T>
Class. getConstructor(Class<?>... parameterTypes)
Answers a public Constructor object which represents the constructor described by the arguments.Constructor<?>[]
Class. getConstructors()
Answers an array containing Constructor objects describing all constructors which are visible from the current execution context.Class<?>[]
Class. getDeclaredClasses()
Answers an array containing all class members of the class which the receiver represents.Constructor<T>
Class. getDeclaredConstructor(Class<?>... parameterTypes)
Answers a Constructor object which represents the constructor described by the arguments.Constructor<?>[]
Class. getDeclaredConstructors()
Answers an array containing Constructor objects describing all constructor which are defined by the receiver.Field
Class. getDeclaredField(String name)
Answers a Field object describing the field in the receiver named by the argument.Field[]
Class. getDeclaredFields()
Answers an array containing Field objects describing all fields which are defined by the receiver.Method
Class. getDeclaredMethod(String name, Class<?>... parameterTypes)
Answers a Method object which represents the method described by the arguments.Method[]
Class. getDeclaredMethods()
Answers an array containing Method objects describing all methods which are defined by the receiver.Class<?>
Class. getEnclosingClass()
Return the enclosing Class of this Class.Constructor<?>
Class. getEnclosingConstructor()
If this Class is defined inside a constructor, return the Constructor.Method
Class. getEnclosingMethod()
If this Class is defined inside a method, return the Method.Field
Class. getField(String name)
Answers a Field object describing the field in the receiver named by the argument which must be visible from the current execution context.Field[]
Class. getFields()
Answers an array containing Field objects describing all fields which are visible from the current execution context.Method
Class. getMethod(String name, Class<?>... parameterTypes)
Answers a Method object which represents the method described by the arguments.Method[]
Class. getMethods()
Answers an array containing Method objects describing all methods which are visible from the current execution context.Class<?>
Class. getNestHost()
Answers the host class of the receiver's nest.Class<?>[]
Class. getNestMembers()
Answers the nest member classes of the receiver's nest host. -
Uses of SecurityException in java.lang.invoke
Methods in java.lang.invoke that throw SecurityException Modifier and Type Method Description Class<?>
MethodHandles.Lookup. defineClass(byte[] classBytes)
Return a class object with the same class loader, the same package and the same protection domain as the lookup's lookup class.MethodHandle
MethodHandles.Lookup. findGetter(Class<?> clazz, String fieldName, Class<?> fieldType)
Return a MethodHandle that provides read access to a field.MethodHandle
MethodHandles.Lookup. findSetter(Class<?> clazz, String fieldName, Class<?> fieldType)
Return a MethodHandle that provides write access to a field.MethodHandle
MethodHandles.Lookup. findSpecial(Class<?> clazz, String methodName, MethodType type, Class<?> specialToken)
Return a MethodHandle bound to a specific-implementation of a virtual method, as if created by an invokespecial bytecode using the class specialToken.MethodHandle
MethodHandles.Lookup. findStaticGetter(Class<?> clazz, String fieldName, Class<?> fieldType)
Return a MethodHandle that provides read access to a field.MethodHandle
MethodHandles.Lookup. findStaticSetter(Class<?> clazz, String fieldName, Class<?> fieldType)
Return a MethodHandle that provides write access to a field.static MethodHandles.Lookup
MethodHandles. privateLookupIn(Class<?> targetClass, MethodHandles.Lookup callerLookup)
Return a MethodHandles.Lookup object with full capabilities including the access to theprivate
members in the requested classstatic <T extends Member>
TMethodHandles. reflectAs(Class<T> expected, MethodHandle target)
Gets the underlying Member of the providedtarget
MethodHandle.MethodHandleInfo
MethodHandles.Lookup. revealDirect(MethodHandle target)
Cracks a MethodHandle, which allows access to its symbolic parts. -
Uses of SecurityException in java.rmi
Subclasses of SecurityException in java.rmi Modifier and Type Class Description class
RMISecurityException
Deprecated.UseSecurityException
instead. -
Uses of SecurityException in java.rmi.server
Methods in java.rmi.server that throw SecurityException Modifier and Type Method Description static ClassLoader
RMIClassLoader. getClassLoader(String codebase)
Returns a class loader that loads classes from the given codebase URL path. -
Uses of SecurityException in java.security
Subclasses of SecurityException in java.security Modifier and Type Class Description class
AccessControlException
This exception is thrown by the AccessController to indicate that a requested access (to a critical system resource such as the file system or the network) is denied.Methods in java.security that throw SecurityException Modifier and Type Method Description void
Guard. checkGuard(Object object)
Determines whether or not to allow access to the guarded objectobject
.void
Permission. checkGuard(Object object)
Implements the guard interface for a permission.Object
GuardedObject. getObject()
Retrieves the guarded object, or throws an exception if access to the guarded object is denied by the guard. -
Uses of SecurityException in java.util.logging
Methods in java.util.logging that throw SecurityException Modifier and Type Method Description void
Logger. addHandler(Handler handler)
Add a log Handler to receive logging messages.void
LogManager. checkAccess()
Check that the current context is trusted to modify the logging configuration.void
FileHandler. close()
Close all the files.abstract void
Handler. close()
Close theHandler
and free all associated resources.void
MemoryHandler. close()
Close theHandler
and free all associated resources.void
SocketHandler. close()
Close this output stream.void
StreamHandler. close()
Close the current output stream.void
LogManager. readConfiguration()
Reads and initializes the logging configuration.void
LogManager. readConfiguration(InputStream ins)
Reads and initializes the logging configuration from the given input stream.void
Logger. removeHandler(Handler handler)
Remove a log Handler.void
LogManager. reset()
Reset the logging configuration.void
Handler. setEncoding(String encoding)
Set the character encoding used by thisHandler
.void
StreamHandler. setEncoding(String encoding)
Set (or change) the character encoding used by thisHandler
.void
Handler. setFilter(Filter newFilter)
Set aFilter
to control output on thisHandler
.void
Logger. setFilter(Filter newFilter)
Set a filter to control output on this Logger.void
Handler. setFormatter(Formatter newFormatter)
Set aFormatter
.void
Handler. setLevel(Level newLevel)
Set the log level specifying which message levels will be logged by thisHandler
.void
Logger. setLevel(Level newLevel)
Set the log level specifying which message levels will be logged by this logger.protected void
StreamHandler. setOutputStream(OutputStream out)
Change the output stream.void
MemoryHandler. setPushLevel(Level newLevel)
Set thepushLevel
.Constructors in java.util.logging that throw SecurityException Constructor Description FileHandler()
Construct a defaultFileHandler
.FileHandler(String pattern)
Initialize aFileHandler
to write to the given filename.FileHandler(String pattern, boolean append)
Initialize aFileHandler
to write to the given filename, with optional append.FileHandler(String pattern, int limit, int count)
Initialize aFileHandler
to write to a set of files.FileHandler(String pattern, int limit, int count, boolean append)
Initialize aFileHandler
to write to a set of files with optional append. -
Uses of SecurityException in javax.swing
Methods in javax.swing that throw SecurityException Modifier and Type Method Description static void
FocusManager. setCurrentManager(FocusManager aFocusManager)
Sets the currentKeyboardFocusManager
instance for the calling thread's context.static void
UIManager. setInstalledLookAndFeels(UIManager.LookAndFeelInfo[] infos)
Sets the set of available look and feels. -
Uses of SecurityException in jdk.jfr
Methods in jdk.jfr that throw SecurityException Modifier and Type Method Description static void
FlightRecorder. addPeriodicEvent(Class<? extends Event> eventClass, Runnable hook)
Adds a hook for a periodic event.static FlightRecorder
FlightRecorder. getFlightRecorder()
Returns the Flight Recorder for the platform.static boolean
FlightRecorder. removePeriodicEvent(Runnable hook)
Removes a hook for a periodic event. -
Uses of SecurityException in jdk.management.jfr
Methods in jdk.management.jfr that throw SecurityException Modifier and Type Method Description long
FlightRecorderMXBean. cloneRecording(long recordingId, boolean stop)
Creates a copy of an existing recording, useful for extracting parts of a recording.void
FlightRecorderMXBean. copyTo(long recordingId, String outputFile)
Writes recording data to the specified file.long
FlightRecorderMXBean. newRecording()
Creates a recording, but doesn't start it.void
FlightRecorderMXBean. startRecording(long recordingId)
Starts the recording with the specified ID.boolean
FlightRecorderMXBean. stopRecording(long recordingId)
Stops the running recording with the specified ID.
-