SecurityManager
open class SecurityManager
kotlin.Any | |
↳ | java.lang.SecurityManager |
Legacy security code; do not use.
Security managers do not provide a secure environment for executing untrusted code and are unsupported on Android. Untrusted code cannot be safely isolated within a single VM on Android. Application developers can assume that there's no SecurityManager installed, i.e. java.lang.System#getSecurityManager()
will return null.
Summary
Public constructors | |
---|---|
Protected methods | |
---|---|
open Int |
classDepth(name: String!) |
open Int | |
open ClassLoader! | |
open Class<*>! | |
open Array<Class<Any!>!>! | |
open Boolean | |
open Boolean |
Properties | |
---|---|
Boolean |
Public constructors
Public methods
checkConnect
open fun checkConnect(
host: String!,
port: Int,
context: Any!
): Unit
checkMemberAccess
open funcheckMemberAccess(
clazz: Class<*>!,
which: Int
): Unit
Deprecated: this method is deprecated.
checkMulticast
open funcheckMulticast(
maddr: InetAddress!,
ttl: Byte
): Unit
Deprecated: use checkMulticast(java.net.InetAddress)
instead.
checkPermission
open fun checkPermission(
perm: Permission!,
context: Any!
): Unit
checkTopLevelWindow
open funcheckTopLevelWindow(window: Any!): Boolean
Deprecated: this method is deprecated.
getThreadGroup
open fun getThreadGroup(): ThreadGroup!
Returns the current thread's thread group.
Protected methods
classDepth
protected open funclassDepth(name: String!): Int
Deprecated: Use #checkPermission instead.
classLoaderDepth
protected open funclassLoaderDepth(): Int
Deprecated: Use #checkPermission instead.
currentClassLoader
protected open funcurrentClassLoader(): ClassLoader!
Deprecated: Use #checkPermission instead.
currentLoadedClass
protected open funcurrentLoadedClass(): Class<*>!
Deprecated: Use #checkPermission instead.
inClass
protected open funinClass(name: String!): Boolean
Deprecated: Use #checkPermission instead.