Uses of Class
java.lang.SecurityException
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
Provides the RMI package.
Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides the classes and interfaces of
the Java 2 platform's core logging facilities.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
-
Uses of SecurityException in java.awt
Modifier and TypeMethodDescriptionvoid
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.final 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
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionprotected 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.ModifierConstructorDescriptionprotected
Provide a way for subclasses that are completely reimplementing ObjectInputStream to not have to allocate private data just used by this implementation of ObjectInputStream.protected
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
Modifier and TypeMethodDescriptionClass.getConstructor
(Class<?>... parameterTypes) Returns aConstructor
object that reflects the specified public constructor of the class represented by thisClass
object.Constructor<?>[]
Class.getConstructors()
Returns an array containingConstructor
objects reflecting all the public constructors of the class represented by thisClass
object.Class<?>[]
Class.getDeclaredClasses()
Returns an array ofClass
objects reflecting all the classes and interfaces declared as members of the class represented by thisClass
object.Class.getDeclaredConstructor
(Class<?>... parameterTypes) Returns aConstructor
object that reflects the specified constructor of the class represented by thisClass
object.Constructor<?>[]
Class.getDeclaredConstructors()
Returns an array ofConstructor
objects reflecting all the constructors implicitly or explicitly declared by the class represented by thisClass
object.Class.getDeclaredField
(String name) Returns aField
object that reflects the specified declared field of the class or interface represented by thisClass
object.Field[]
Class.getDeclaredFields()
Returns an array ofField
objects reflecting all the fields declared by the class or interface represented by thisClass
object.Class.getDeclaredMethod
(String name, Class<?>... parameterTypes) Returns aMethod
object that reflects the specified declared method of the class or interface represented by thisClass
object.Method[]
Class.getDeclaredMethods()
Returns an array containingMethod
objects reflecting all the declared methods of the class or interface represented by thisClass
object, including public, protected, default (package) access, and private methods, but excluding inherited methods.Class
<?> Class.getDeclaringClass()
If the class or interface represented by thisClass
object is a member of another class, returns theClass
object representing the class in which it was declared.Class
<?> Class.getEnclosingClass()
Returns the immediately enclosing class of the underlying class.Constructor
<?> Class.getEnclosingConstructor()
If thisClass
object represents a local or anonymous class within a constructor, returns aConstructor
object representing the immediately enclosing constructor of the underlying class.Class.getEnclosingMethod()
If thisClass
object represents a local or anonymous class within a method, returns aMethod
object representing the immediately enclosing method of the underlying class.Returns aField
object that reflects the specified public member field of the class or interface represented by thisClass
object.Field[]
Class.getFields()
Returns an array containingField
objects reflecting all the accessible public fields of the class or interface represented by thisClass
object.Returns aMethod
object that reflects the specified public member method of the class or interface represented by thisClass
object.Method[]
Class.getMethods()
Returns an array containingMethod
objects reflecting all the public methods of the class or interface represented by thisClass
object, including those declared by the class or interface and those inherited from superclasses and superinterfaces. -
Uses of SecurityException in java.rmi
-
Uses of SecurityException in java.rmi.server
Modifier and TypeMethodDescriptionstatic ClassLoader
RMIClassLoader.getClassLoader
(String codebase) Returns a class loader that loads classes from the given codebase URL path. -
Uses of SecurityException in java.security
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.Modifier and TypeMethodDescriptionvoid
Guard.checkGuard
(Object object) Determines whether to allow access to the guarded objectobject
.void
Permission.checkGuard
(Object object) Implements the guard interface for a permission.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
Modifier and TypeMethodDescriptionvoid
Logger.addHandler
(Handler handler) Add a log Handler to receive logging messages.void
LogManager.checkAccess()
Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.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
Set aFilter
to control output on thisHandler
.void
Set a filter to control output on this Logger.void
Handler.setFormatter
(Formatter newFormatter) Set aFormatter
.void
Set the log level specifying which message levels will be logged by thisHandler
.void
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
.ModifierConstructorDescriptionConstruct 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
Modifier and TypeMethodDescriptionstatic 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.
SecurityException
instead.