# Uses of Class
java.lang.SecurityException

Packages that use SecurityException
Package
Description
java.rmi
Provides the RMI package.
java.security
Provides the classes and interfaces for the security framework.

- ## Uses of SecurityException in java.rmi

  Subclasses of SecurityException in java.rmi
  Modifier and Type
  Class
  Description
  `class`
  `RMISecurityException`
  Deprecated.
  Use `SecurityException` instead.

- ## Uses of SecurityException in java.security

  Subclasses of SecurityException in java.security
  Modifier and Type
  Class
  Description
  `class`
  `AccessControlException`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This exception was only useful in conjunction with the Security Manager, which is no longer supported.
  Methods in java.security that throw SecurityException
  Modifier and Type
  Method
  Description
  `void`
  Guard.`checkGuard(Object object)`
  Determines whether to allow access to the guarded object `object`.
  `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.