SecurityManager
public
class
SecurityManager
extends Object
| java.lang.Object | |
| ↳ | java.lang.SecurityManager |
Legacy security code; do not use.
Summary
Fields | |
|---|---|
protected
boolean |
inCheck
This field was deprecated
in API level 1.
Use |
Public constructors | |
|---|---|
SecurityManager()
|
|
Protected methods | |
|---|---|
int
|
classDepth(String name)
This method was deprecated
in API level 1.
Use |
int
|
classLoaderDepth()
This method was deprecated
in API level 1.
Use |
ClassLoader
|
currentClassLoader()
This method was deprecated
in API level 1.
Use |
Class<?>
|
currentLoadedClass()
This method was deprecated
in API level 1.
Use |
Class[]
|
getClassContext()
|
boolean
|
inClass(String name)
This method was deprecated
in API level 1.
Use |
boolean
|
inClassLoader()
This method was deprecated
in API level 1.
Use |
Inherited methods | |
|---|---|
java.lang.Object
| |
Fields
inCheck
boolean inCheck
This field was deprecated
in API level 1.
Use checkPermission(Permission) instead.
Public constructors
Public methods
checkAccept
void checkAccept (String host, int port)
| Parameters | |
|---|---|
host |
String
|
port |
int
|
checkConnect
void checkConnect (String host, int port)
| Parameters | |
|---|---|
host |
String
|
port |
int
|
checkConnect
void checkConnect (String host, int port, Object context)
| Parameters | |
|---|---|
host |
String
|
port |
int
|
context |
Object
|
checkMemberAccess
void checkMemberAccess (Class<?> clazz, int which)
| Parameters | |
|---|---|
clazz |
Class
|
which |
int
|
checkMulticast
void checkMulticast (InetAddress maddr)
| Parameters | |
|---|---|
maddr |
InetAddress
|
checkMulticast
void checkMulticast (InetAddress maddr, byte ttl)
This method was deprecated
in API level 1.
use checkMulticast(java.net.InetAddress) instead.
| Parameters | |
|---|---|
maddr |
InetAddress
|
ttl |
byte
|
checkPackageDefinition
void checkPackageDefinition (String pkg)
| Parameters | |
|---|---|
pkg |
String
|
checkPermission
void checkPermission (Permission perm, Object context)
| Parameters | |
|---|---|
perm |
Permission
|
context |
Object
|
checkPermission
void checkPermission (Permission perm)
| Parameters | |
|---|---|
perm |
Permission
|
checkPropertyAccess
void checkPropertyAccess (String key)
| Parameters | |
|---|---|
key |
String
|
checkRead
void checkRead (String file, Object context)
| Parameters | |
|---|---|
file |
String
|
context |
Object
|
checkSecurityAccess
void checkSecurityAccess (String target)
| Parameters | |
|---|---|
target |
String
|
checkTopLevelWindow
boolean checkTopLevelWindow (Object window)
| Parameters | |
|---|---|
window |
Object
|
| Returns | |
|---|---|
boolean |
|
getInCheck
boolean getInCheck ()
This method was deprecated
in API level 1.
Use checkPermission(Permission) instead.
| Returns | |
|---|---|
boolean |
|
getThreadGroup
ThreadGroup getThreadGroup ()
Returns the current thread's thread group.
| Returns | |
|---|---|
ThreadGroup |
|
Protected methods
classDepth
int classDepth (String name)
This method was deprecated
in API level 1.
Use checkPermission(Permission) instead.
| Parameters | |
|---|---|
name |
String
|
| Returns | |
|---|---|
int |
|
classLoaderDepth
int classLoaderDepth ()
This method was deprecated
in API level 1.
Use checkPermission(Permission) instead.
| Returns | |
|---|---|
int |
|
currentClassLoader
ClassLoader currentClassLoader ()
This method was deprecated
in API level 1.
Use checkPermission(Permission) instead.
| Returns | |
|---|---|
ClassLoader |
|
currentLoadedClass
Class<?> currentLoadedClass ()
This method was deprecated
in API level 1.
Use checkPermission(Permission) instead.
| Returns | |
|---|---|
Class<?> |
|
inClass
boolean inClass (String name)
This method was deprecated
in API level 1.
Use checkPermission(Permission) instead.
| Parameters | |
|---|---|
name |
String
|
| Returns | |
|---|---|
boolean |
|
inClassLoader
boolean inClassLoader ()
This method was deprecated
in API level 1.
Use checkPermission(Permission) instead.
| Returns | |
|---|---|
boolean |
|
Annotations
Interfaces
Classes
- Boolean
- Byte
- Character
- Character.Subset
- Character.UnicodeBlock
- Class
- ClassLoader
- Compiler
- Double
- Enum
- Float
- InheritableThreadLocal
- Integer
- Long
- Math
- Number
- Object
- Package
- Process
- ProcessBuilder
- Runtime
- RuntimePermission
- SecurityManager
- Short
- StackTraceElement
- StrictMath
- String
- StringBuffer
- StringBuilder
- System
- Thread
- ThreadGroup
- ThreadLocal
- Throwable
- Void
Enums
Exceptions
- ArithmeticException
- ArrayIndexOutOfBoundsException
- ArrayStoreException
- ClassCastException
- ClassNotFoundException
- CloneNotSupportedException
- EnumConstantNotPresentException
- Exception
- IllegalAccessException
- IllegalArgumentException
- IllegalMonitorStateException
- IllegalStateException
- IllegalThreadStateException
- IndexOutOfBoundsException
- InstantiationException
- InterruptedException
- NegativeArraySizeException
- NoSuchFieldException
- NoSuchMethodException
- NullPointerException
- NumberFormatException
- ReflectiveOperationException
- RuntimeException
- SecurityException
- StringIndexOutOfBoundsException
- TypeNotPresentException
- UnsupportedOperationException
Errors
- AbstractMethodError
- AssertionError
- ClassCircularityError
- ClassFormatError
- Error
- ExceptionInInitializerError
- IllegalAccessError
- IncompatibleClassChangeError
- InstantiationError
- InternalError
- LinkageError
- NoClassDefFoundError
- NoSuchFieldError
- NoSuchMethodError
- OutOfMemoryError
- StackOverflowError
- ThreadDeath
- UnknownError
- UnsatisfiedLinkError
- UnsupportedClassVersionError
- VerifyError
- VirtualMachineError

