Uses of Class
java.lang.SecurityException
| Package | Description |
|---|---|
| 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.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 java.awt
Methods in java.awt that throw SecurityException Modifier and Type Method Description voidKeyboardFocusManager. clearGlobalFocusOwner()Clears the global focus owner at both the Java and native levels.protected WindowKeyboardFocusManager. getGlobalActiveWindow()Returns the active Window, even if the calling thread is in a different context than the active Window.protected ContainerKeyboardFocusManager. getGlobalCurrentFocusCycleRoot()Returns the current focus cycle root, even if the calling thread is in a different context than the current focus cycle root.protected WindowKeyboardFocusManager. getGlobalFocusedWindow()Returns the focused Window, even if the calling thread is in a different context than the focused Window.protected ComponentKeyboardFocusManager. getGlobalFocusOwner()Returns the focus owner, even if the calling thread is in a different context than the focus owner.protected ComponentKeyboardFocusManager. getGlobalPermanentFocusOwner()Returns the permanent focus owner, even if the calling thread is in a different context than the permanent focus owner.voidWindow. setAlwaysOnTop(boolean alwaysOnTop)Sets whether this window should always be above other windows.static voidKeyboardFocusManager. setCurrentKeyboardFocusManager(KeyboardFocusManager newManager)Sets the current KeyboardFocusManager instance for the calling thread's context.protected voidKeyboardFocusManager. setGlobalActiveWindow(Window activeWindow)Sets the active Window.voidKeyboardFocusManager. setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)Sets the current focus cycle root.protected voidKeyboardFocusManager. setGlobalFocusedWindow(Window focusedWindow)Sets the focused Window.protected voidKeyboardFocusManager. setGlobalFocusOwner(Component focusOwner)Sets the focus owner.protected voidKeyboardFocusManager. 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 voidBeans. setDesignTime(boolean isDesignTime)Used to indicate whether of not we are running in an application builder environment.static voidBeans. 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 booleanObjectOutputStream. enableReplaceObject(boolean enable)Enables the stream to do replacement of objects written to the stream.protected booleanObjectInputStream. 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)Returns aConstructorobject that reflects the specified public constructor of the class represented by thisClassobject.Constructor<?>[]Class. getConstructors()Returns an array containingConstructorobjects reflecting all the public constructors of the class represented by thisClassobject.Class<?>[]Class. getDeclaredClasses()Returns an array ofClassobjects reflecting all the classes and interfaces declared as members of the class represented by thisClassobject.Constructor<T>Class. getDeclaredConstructor(Class<?>... parameterTypes)Returns aConstructorobject that reflects the specified constructor of the class or interface represented by thisClassobject.Constructor<?>[]Class. getDeclaredConstructors()Returns an array ofConstructorobjects reflecting all the constructors declared by the class represented by thisClassobject.FieldClass. getDeclaredField(String name)Returns aFieldobject that reflects the specified declared field of the class or interface represented by thisClassobject.Field[]Class. getDeclaredFields()Returns an array ofFieldobjects reflecting all the fields declared by the class or interface represented by thisClassobject.MethodClass. getDeclaredMethod(String name, Class<?>... parameterTypes)Returns aMethodobject that reflects the specified declared method of the class or interface represented by thisClassobject.Method[]Class. getDeclaredMethods()Returns an array containingMethodobjects reflecting all the declared methods of the class or interface represented by thisClassobject, including public, protected, default (package) access, and private methods, but excluding inherited methods.Class<?>Class. getDeclaringClass()If the class or interface represented by thisClassobject is a member of another class, returns theClassobject representing the class in which it was declared.Class<?>Class. getEnclosingClass()Returns the immediately enclosing class of the underlying class.Constructor<?>Class. getEnclosingConstructor()If thisClassobject represents a local or anonymous class within a constructor, returns aConstructorobject representing the immediately enclosing constructor of the underlying class.MethodClass. getEnclosingMethod()If thisClassobject represents a local or anonymous class within a method, returns aMethodobject representing the immediately enclosing method of the underlying class.FieldClass. getField(String name)Returns aFieldobject that reflects the specified public member field of the class or interface represented by thisClassobject.Field[]Class. getFields()Returns an array containingFieldobjects reflecting all the accessible public fields of the class or interface represented by thisClassobject.MethodClass. getMethod(String name, Class<?>... parameterTypes)Returns aMethodobject that reflects the specified public member method of the class or interface represented by thisClassobject.Method[]Class. getMethods()Returns an array containingMethodobjects reflecting all the public methods of the class or interface represented by thisClassobject, including those declared by the class or interface and those inherited from superclasses and superinterfaces. -
Uses of SecurityException in java.rmi
Subclasses of SecurityException in java.rmi Modifier and Type Class Description classRMISecurityExceptionDeprecated.UseSecurityExceptioninstead. -
Uses of SecurityException in java.rmi.server
Methods in java.rmi.server that throw SecurityException Modifier and Type Method Description static ClassLoaderRMIClassLoader. 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 classAccessControlExceptionThis 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 voidGuard. checkGuard(Object object)Determines whether or not to allow access to the guarded objectobject.voidPermission. checkGuard(Object object)Implements the guard interface for a permission.ObjectGuardedObject. 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 voidLogger. addHandler(Handler handler)Add a log Handler to receive logging messages.voidLogManager. checkAccess()Check that the current context is trusted to modify the logging configuration.voidFileHandler. close()Close all the files.abstract voidHandler. close()Close theHandlerand free all associated resources.voidMemoryHandler. close()Close theHandlerand free all associated resources.voidSocketHandler. close()Close this output stream.voidStreamHandler. close()Close the current output stream.voidLogManager. readConfiguration()Reads and initializes the logging configuration.voidLogManager. readConfiguration(InputStream ins)Reads and initializes the logging configuration from the given input stream.voidLogger. removeHandler(Handler handler)Remove a log Handler.voidLogManager. reset()Reset the logging configuration.voidHandler. setEncoding(String encoding)Set the character encoding used by thisHandler.voidStreamHandler. setEncoding(String encoding)Set (or change) the character encoding used by thisHandler.voidHandler. setFilter(Filter newFilter)Set aFilterto control output on thisHandler.voidLogger. setFilter(Filter newFilter)Set a filter to control output on this Logger.voidHandler. setFormatter(Formatter newFormatter)Set aFormatter.voidHandler. setLevel(Level newLevel)Set the log level specifying which message levels will be logged by thisHandler.voidLogger. setLevel(Level newLevel)Set the log level specifying which message levels will be logged by this logger.protected voidStreamHandler. setOutputStream(OutputStream out)Change the output stream.voidMemoryHandler. setPushLevel(Level newLevel)Set thepushLevel.Constructors in java.util.logging that throw SecurityException Constructor Description FileHandler()Construct a defaultFileHandler.FileHandler(String pattern)Initialize aFileHandlerto write to the given filename.FileHandler(String pattern, boolean append)Initialize aFileHandlerto write to the given filename, with optional append.FileHandler(String pattern, int limit, int count)Initialize aFileHandlerto write to a set of files.FileHandler(String pattern, int limit, int count, boolean append)Initialize aFileHandlerto 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 voidFocusManager. setCurrentManager(FocusManager aFocusManager)Sets the currentKeyboardFocusManagerinstance for the calling thread's context.static voidUIManager. 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 voidFlightRecorder. addPeriodicEvent(Class<? extends Event> eventClass, Runnable hook)Adds a hook for a periodic event.static FlightRecorderFlightRecorder. getFlightRecorder()Returns the Flight Recorder for the platform.static booleanFlightRecorder. 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 longFlightRecorderMXBean. cloneRecording(long recordingId, boolean stop)Creates a copy of an existing recording, useful for extracting parts of a recording.voidFlightRecorderMXBean. copyTo(long recordingId, String outputFile)Writes recording data to the specified file.longFlightRecorderMXBean. newRecording()Creates a recording, but doesn't start it.voidFlightRecorderMXBean. startRecording(long recordingId)Starts the recording with the specified ID.booleanFlightRecorderMXBean. stopRecording(long recordingId)Stops the running recording with the specified ID.