## Uses of Class
java.lang.SecurityException

- Packages that use SecurityException
  Package | Description
  --- | ---
  java.io |
  java.lang |
  java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects.
  java.util.logging |

- - ### Uses of SecurityException in java.io

    Methods in java.io that throw SecurityException
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | ObjectOutputStream.`enableReplaceObject(boolean enable)` Enable the stream to do replacement of objects in the stream.
    `protected boolean` | ObjectInputStream.`enableResolveObject(boolean enable)` Enable the stream to allow objects read from the stream to be replaced.

    Constructors in java.io that throw SecurityException
    Constructor and 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 and Description
    --- | ---
    `Constructor<T>` | Class.`getConstructor(Class<?>... parameterTypes)` Returns a `Constructor` object that reflects the specified public constructor of the class represented by this `Class` object.
    `Constructor<?>[]` | Class.`getConstructors()` Returns an array containing `Constructor` objects reflecting all the public constructors of the class represented by this `Class` object.
    `Constructor<T>` | Class.`getDeclaredConstructor(Class<?>... parameterTypes)` Returns a `Constructor` object that reflects the specified constructor of the class or interface represented by this `Class` object.
    `Constructor<?>[]` | Class.`getDeclaredConstructors()` Returns an array of `Constructor` objects reflecting all the constructors declared by the class represented by this `Class` object.
    `Field` | Class.`getDeclaredField(String name)` Returns a `Field` object that reflects the specified declared field of the class or interface represented by this `Class` object.
    `Field[]` | Class.`getDeclaredFields()` Returns an array of `Field` objects reflecting all the fields declared by the class or interface represented by this `Class` object.
    `Method` | Class.`getDeclaredMethod(String name, Class<?>... parameterTypes)` Bck2Brwsr emulation can only seek public methods, otherwise it throws a `SecurityException`.
    `Method[]` | Class.`getDeclaredMethods()` Returns an array of `Method` objects reflecting all the methods declared by the class or interface represented by this `Class` object.
    `Field` | Class.`getField(String name)` Returns a `Field` object that reflects the specified public member field of the class or interface represented by this `Class` object.
    `Field[]` | Class.`getFields()` Returns an array containing `Field` objects reflecting all the accessible public fields of the class or interface represented by this `Class` object.
    `Method` | Class.`getMethod(String name, Class<?>... parameterTypes)` Returns a `Method` object that reflects the specified public member method of the class or interface represented by this `Class` object.
    `Method[]` | Class.`getMethods()` Returns an array containing `Method` objects reflecting all the public member methods of the class or interface represented by this `Class` object, including those declared by the class or interface and those inherited from superclasses and superinterfaces.

  - ### Uses of SecurityException in java.lang.reflect

    Methods in java.lang.reflect that throw SecurityException
    Modifier and Type | Method and Description
    --- | ---
    `static void` | AccessibleObject.`setAccessible(AccessibleObject[] array, boolean flag)` Convenience method to set the `accessible` flag for an array of objects with a single security check (for efficiency).
    `void` | AccessibleObject.`setAccessible(boolean flag)` Set the `accessible` flag for this object to the indicated boolean value.

  - ### Uses of SecurityException in java.util.logging

    Methods in java.util.logging that throw SecurityException
    Modifier and Type | Method and Description
    --- | ---
    `void` | Logger.`setLevel(Level newLevel)` Set the log level specifying which message levels will be logged by this logger.

Copyright © 2025 API Design. All Rights Reserved.