- Java.lang - Void
- Java.lang - Throwable
- Java.lang - ThreadLocal
- Java.lang - ThreadGroup
- Java.lang - Thread
- Java.lang - System
- Java.lang - StringBuilder
- Java.lang - StringBuffer
- Java.lang - String
- Java.lang - StrictMath
- Java.lang - StackTraceElement
- Java.lang - Short
- Java.lang - SecurityManager
- Java.lang - RuntimePermission
- Java.lang - Runtime
- Java.lang - ProcessBuilder
- Java.lang - Process
- Java.lang - Package
- Java.lang - Object
- Java.lang - Number
- Java.lang - Math
- Java.lang - Long
- Java.lang - Integer
- Java.lang - InheritableThreadLocal
- Java.lang - Float
- Java.lang - Enum
- Java.lang - Double
- Java.lang - Compiler
- Java.lang - ClassLoader
- Java.lang - Class
- Java.lang - Character.UnicodeBlock
- Java.lang - Character.Subset
- Java.lang - Character
- Java.lang - Byte
- Java.lang - Boolean
- Java.lang - Home
Java.lang Package extras
Java.lang Package Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Java.lang.SecurityManager Class
Introduction
The java.lang.SecurityManager class allows apppcations to implement a security popcy. It allows an apppcation to determine, before performing a possibly unsafe or sensitive operation, what the operation is and whether it is being attempted in a security context that allows the operation to be performed. The apppcation can allow or disallow the operation.
Class Declaration
Following is the declaration for java.lang.SecurityManager class −
pubpc class SecurityManager extends Object
Class constructors
Sr.No. | Constructor & Description |
---|---|
1 |
SecurityManager() This constructs a new SecurityManager. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | This method throws a SecurityException if the calpng thread is not permitted to accept a socket connection from the specified host and port number. |
2 | This method throws a SecurityException if the calpng thread is not allowed to modify the thread argument. |
3 | This method throws a SecurityException if the calpng thread is not allowed to modify the thread group argument. |
4 | This method throws a SecurityException if the calpng thread is not allowed to access the AWT event queue. |
5 | This method throws a SecurityException if the calpng thread is not allowed to open a socket connection to the specified host and port number. |
6 | This method throws a SecurityException if the specified security context is not allowed to open a socket connection to the specified host and port number. |
7 | This method throws a SecurityException if the calpng thread is not allowed to create a new class loader. |
8 | This method throws a SecurityException if the calpng thread is not allowed to delete the specified file. |
9 | This method throws a SecurityException if the calpng thread is not allowed to create a subprocess. |
10 | This method throws a SecurityException if the calpng thread is not allowed to cause the Java Virtual Machine to halt with the specified status code. |
11 | This method throws a SecurityException if the calpng thread is not allowed to dynamic pnk the pbrary code specified by the string argument file. |
12 | This method throws a SecurityException if the calpng thread is not allowed to wait for a connection request on the specified local port number. |
13 | This method throws a SecurityException if the calpng thread is not allowed to access members. |
14 | This method throws a SecurityException if the calpng thread is not allowed to use (join/leave/send/receive) IP multicast. |
15 | This method throws a SecurityException if the calpng thread is not allowed to access the package specified by the argument. |
16 | This method throws a SecurityException if the calpng thread is not allowed to define classes in the package specified by the argument. |
17 | This method throws a SecurityException if the requested access, specified by the given permission, is not permitted based on the security popcy currently in effect. |
18 | This method throws a SecurityException if the specified security context is denied access to the resource specified by the given permission. |
19 | This method throws a SecurityException if the calpng thread is not allowed to initiate a print job request. |
20 | This method throws a SecurityException if the calpng thread is not allowed to access or modify the system properties. |
21 | This method throws a SecurityException if the calpng thread is not allowed to access the system property with the specified key name. |
22 | This method throws a SecurityException if the calpng thread is not allowed to read from the specified file descriptor. |
23 | This method throws a SecurityException if the calpng thread is not allowed to read the file specified by the string argument. |
24 | This method throws a SecurityException if the specified security context is not allowed to read the file specified by the string argument. |
25 | This method determines whether the permission with the specified permission target name should be granted or denied. |
26 | This method throws a SecurityException if the calpng thread is not allowed to set the socket factory used by ServerSocket or Socket, or the stream handler factory used by URL. |
27 | This method throws a SecurityException if the calpng thread is not allowed to access the system cppboard. |
28 | This method returns false if the calpng thread is not trusted to bring up the top-level window indicated by the window argument. |
29 | This method throws a SecurityException if the calpng thread is not allowed to write to the specified file descriptor. |
30 | This method throws a SecurityException if the calpng thread is not allowed to write to the file specified by the string argument. |
31 | This method returns the current execution stack as an array of classes. |
32 | This method creates an object that encapsulates the current execution environment. |
33 | This method returns the thread group into which to instantiate any new thread being created at the time this is being called. |
Methods inherited
This class inherits methods from the following classes −
java.lang.Object